Question: # 1 . if - elif - else # Fill missing pieces ( _ _ _ _ ) of the following code # such that

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!