if-elif-else
¶Fill missing pieces (____
) of the following code such that prints make sense.
name = "John Doe"
if ____:
print(f'Name "{name}" is more than 20 chars long')
length_description = "long"
elif ____:
print(f'Name "{name}" is more than 15 chars long')
length_description = "semi long"
elif ____:
print(f'Name "{name}" is more than 10 chars long')
length_description = "semi long"
elif ____:
print(f'Name "{name}" is 8, 9 or 10 chars long')
length_description = "semi short"
else:
print(f'Name "{name}" is a short name')
length_description = "short"
assert length_description == "semi short"