Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started