Basic Python
Basic Components π
Data Types and Classifications π©βπ«
Flow Control ππ€½ββοΈ
# if, elif, and else control!!
ayyy = 'lmao'
# if statements check if a statement is true
if ayyy == 'lmao':
print('π½π½π½')
# elif statments help determine one of many possible clauses
elif len(ayyy) == 4:
print('ππππ')
# can have have several elif, but skips any remaining elif after first True
elif len(ayyy) != 4:
print('π€π€π€')
# else statements is executed ONLY if the preceeding if is False (NOT REQUIRED!)
else:
print('βπ½β')Strings π§΅
Lists ππ
Dictionaries ππ
Loops
Convert bytes to IPv4
Last updated