Python Version: 2.7 We use python for rapid development. Mainly using the matrix operations, so we quickly introduce python collection type and control structure.
List
|
|
python has arryay data type, which similar to c/cpp/java/…, can contain only one type of data. This array type is faster than list when you are looping.
Dicthinaries
|
|
Set
|
|
if
|
|
for
In for,while,or if statements, we use indentation to tell python which line of code belong inside these loops.
|
|
You can also loop over a dictionary, The item iterated over are acturally the dictionary keys.
list comprehensions
|
|