Python conditionals
From wikinotes
if statement
if var == 'no' :
print "something"
elif var == 'yes' :
print "something else"
else:
print "something else entirely"
You may find the all
keyword useful:
if all([
a == 1,
b == 2,
c == 3,
]):
print('success')
match
match name: case "will": print("its me") case "maize": print("its the cat")