Python Notes (3) - Functions

2018-03-19  本文已影响9人  SilentSummer

The note covers funtion syntax, importing modules and build-in functions.

Python notes of open courses @Codecademy.

About Functions

If you need reuse a piece of code, just with a few different values. Instead of rewriting the whole code, it's much cleaner to define a function, which can then be used repeatedly.

Function Syntax

Importing Modules

Built-in Functions

External Resources

上一篇 下一篇

猜你喜欢

热点阅读