This is an old revision of the document!
Start REPL (Read Execute Print Repeat) interactive mode and exit:
shell$ python >>> >>> quit() shell$
Execute files:
shell$ python filename.py shell$ python filename.py arg1 arg2 arg3
Variables:
a = 10 b = "Ana are mere" c = [1, 2, 3]
Functions:
def my_function(a
Lists:
l1 = [1, 2, 3] l2 = [10, 'mere', [25, 20], {}, ]
i = 0 cnt1 = 0 while i < 10: if i%2 == 0: cnt += 1 range(), len(), type()
fsafsafsa