Question: 1. What does the following line of code do? 2. # Python program to illustrate if-elif-else ladder 3. #!/usr/bin/python 4. 5. i=20 6. if (i==10)
1. What does the following line of code do? 2. \# Python program to illustrate if-elif-else ladder 3. \#!/usr/bin/python 4. 5. i=20 6. if (i==10) : 7. print ("i is 10) 8. elif (i==15) : 9. print (" i is 15) 10. elif (i==20) : 11. print (" i is 20") 12. else: 13. print("i is not present") For the toolbar, press ALT+F10(PC) or ALT+FN+F10 (Mac)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
