Python is one of my favorite programming language. I'll write up some useful tutorials for new python users.
Reference
- http://www.pythontutor.com/
- http://docs.python.org/index.html
- Python tutorial(Korean)
- Lambda function(Korean)
(the latter part will be re-written)
Python2 vs. Python3
Indentation and Scope
Interactive mode vs. Script mode
Python is a good calculator in interactive mode.
Program Flow
top to bottom
__main__
If, Else, and While
Define
Variable
You don't have to define it explicitly. Just use, then it will be stored. A type of a variable is also automatically determined.
Function
Class
Data Types
Tuple
Trick
Easy returning
List
Difference between Tuple and List
The length of tuple cannot be changed, but we can always change the length of list. Just think of tuple as a integer.
Manipulation
Useful functions
Dictionary
Useful functions
Importing
http://docs.python.org/tutorial/modules.html