New submission from Xue Fuqiao:
In
https://hg.python.org/cpython/file/6fbb7c9d77c6/Doc/tutorial/controlflow.rst#l295
:
A function definition introduces the function name in the
current symbol table. The value of the function name has a
type that is recognized by the interpreter as a
New submission from Xue Fuqiao:
PEP 8 says:
---
|The closing brace/bracket/parenthesis on multi-line constructs may
|either line up under the last item of the list, as in:
|
|my_list = [
|1, 2, 3,
|4, 5, 6
New submission from Xue Fuqiao:
In http://docs.python.org/3.3/tutorial/introduction.html#strings:
In addition to indexing, slicing is also supported. While indexing is
used to obtain individual characters, slicing allows you to obtain
substring:
>>> word[0:2] # characters from