GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing syntaxdb.com — Functions in Python - SyntaxDB - Python Syntax Reference
LanguageVersion: 3.4.3Categories
FunctionsFunctions in PythonA function is a block of code that can be called from another location in the program or class. SyntaxNotesIt is used to reduce the repetition of multiple lines of code. A function can either return nil, a value, or an array of values. When declaring a function, parameters can be passed as regular variables (no prefix to variable), tuples for a variable number of args (using a single asterisk prefix *), or as a dictionary (using a double asterisk prefix **). By default, functions do not have access to outside variables. To access global variables, use the 'global' keyword in front of the variable name. Otherwise, these global variables will be initialized inside the function with local scope. Example
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |