Functions - PY4E
We treat function names as “new”reserved words(i.e., we avoid them as variable names). Function Definition. In Python a function is some reusable code that ...
We treat function names as “new”reserved words(i.e., we avoid them as variable names). Function Definition. In Python a function is some reusable code that ...
We look at how Python executes some statements and skips others. 5: Functions. Take a brief look at how Python implements the 'store and use later' programming pattern. 6: Loops and Iterations. We look at how Python repeats statements using looping structures.
Python also provides built-in functions that convert values from one type to another. The int function takes any value and converts it to an integer, if it can, or complains otherwise
We look at how Python stores and manipulates textual data using string variables and functions.
In a sense, when you use a program written by someone else the conversation is between you and those other programmers with Python acting as an intermediary. Python is a way for the creators of programs to express how the conversation is supposed to proceed.