Question: Look at the code below: if my _ var 1 : print ( my _ var is less than 1 ) if my _
Look at the code below:
if myvar :
printmyvar is less than
if myvar :
print myvar is
if myvar :
print myvar is greater than
Use the code blocks to create an equivalent program that uses elif statements instead of if statement. Hint, you will not use all of the code blocks. Do not forget to indent!
Drag from here
if myvar :
printmyvar is less than
printmyvar is greater than
else if myvar :
elif myvar :
else:
printmyvar is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
