In programming, the little things matter! An extra full-stop or the smallest typo will stop your code running
Plain text approach:
.py
extensionJupyter notebook approach:
jupyter notebook
jupyter notebook
.ipynb
extensionData type | Python name | Definition | Example |
---|---|---|---|
integer | int | positive or negative whole numbers | -256 |
float | float | real number | -3.16436 |
string | str | character string | "20 pence." |
list | list | a sequence of values | ['frog',2,8] |
+ boolean, dict, tuple, complex, None, set
</small>
Data type | Python name | Definition | Example |
---|---|---|---|
integer | int | positive or negative whole numbers | -256 |
float | float | real number | -3.16436 |
string | str | character string | "20 pence." |
list | list | a sequence of values | ['frog',2,8] |
</small>
print()
, execution order len()
, string operations/indexing/slicing, type conversion: int()
, str()
, float()
min()
, max()
, round()
, help()
, runtime errors (exceptions), syntax errors