Question: In Python: #@3: We want to use if-elif-else to show the order of number in a list. MyList = list(range(1,5)) for value in MyList: if
In Python:
#@3: We want to use if-elif-else to show the order of number in a list. MyList = list(range(1,5)) for value in MyList: if value '?' 1: #1 point print('1st') #1 point '?' value == 2: print('2nd') '?' value == 3: print('3rd') '?' value == 4: print('4th')
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
