1. Data type
2. Variant
Grammer:objectreference = value
' = ' means bind a variant with object in memory.
Variant name is case sensitive in Pyhon.
3. Combination data type
Major types is meta and list
Meta is fixed.
List is changable.
#x. Append (XXX) = = List.append (x, ' xxx ')
There is the methods in Python. As following.
functionname (arguments)
Objectname.methodname (arguments)
4. Logical operator
Sometimes "is" would give you a different result. In fact. Its compared with memory object.
0<=a<=10 equal a>=0 and a<=10
"In" was better used in Dict
5. Control
A.
If Boolean_expression1:
Suite1
Elif Boolean_expression2:
....
Else
Else_suite
B.
While Boolean_expression:
Suite
C.
For variable in iterable:
Suite
6. Mathmatic
List must use Iterable object.
e.g. seeds+=5 # would get error
SEEDS+=[5] #correct
7. IO
Try
...
Except ValueError as err:
Print (ERR)
Continue
Except Eoferror:
Break
8. function
def functionname (Argument1,a2,a3 ...):
Suite
There is eight key elements of Python