Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python, Python - Coggle Diagram
Python
Data Types
bool
true
false
str
's'
"s"
''' s ''''
Escape Sequences
/
- escape
/t
- tab
/n
- new line
Formatted String
print(
f'
hi
{name}
. You are
{age}
years old.')
Slicking Strings
my_string[0]
my_string[start:strop:stepover]
Immutability
You
can't change the value of a string
You can only reassign it
list
tuple
set
dict
classes
modules
none
Numbers
Augmented Assignment Operator
-=
*=
/=
+=
int
float
complex
Functions
print()
type()
Math Functions
round()
abs
absolute value of a number
bin()
get binary number
len()
Length of something
Data Structures
List
container around data
a way to organize data
accessing, writing, removing, slicing, referencing, modifying
Python
Functions
Just a few built-in functions
Methods
Functions have methods
Data Types
Storing Data