int
, float
, bool
, complex
type()
string
, function
list
, dict
, set
, tuple
class
=
+
, -
, *
, /
, **
, %
, //
==
, !=
, <
, <=
, >
, >=
&
, |
, ^
, <<
, >>
* ```def```, ```return```, ```pass``` keywords
* arguments and keyword arguments
* passing in unknown number of arguments
```python
def my_function(arguments,..., keyword_arguments=3):
#run your code here
return_variable=1
return return_variable
```
if
, elif
, else
and
, not
, or
==
, !=
, >
, >=
, <
, <=
list
, tuple
, string
range()
functionfor
, while
break
, continue
else
split()
, join()
, find()
, index()
, format()
…print()
class MyClass(object):
def __init__(self,value):
self.value = value
def my_method(self):
return self.value
import X
from X import Y
import X.Z
import X as A
numpy, scipy, matplotlib
https://numpy.org/doc/stable/user/numpy-for-matlab-users.html
pyQt, tkinter
sympy,