Question: Can someone break this down by step for me and explain please codio.com Online C Mathway Announce...Home-. Mail-dam Mail-dam ) Codio Codio Proj Codio.c N
codio.com Online C Mathway Announce...Home-. Mail-dam Mail-dam ) Codio Codio Proj Codio.c N int (sys.argv[2]) We will pass you 2 inputs e an list of numbers e a number, N, to look for # Convert the list of strings into integers 7 numbers- [ 8for i in sys.argv[1].split(","): if(i.isdigit)): 18 numbers.append (int ()) # numbers now contains the list of integers 12 13 14 15 16 Your job is to loop through the list and find the number specified in the second input. Output the list element index where you find the number # Write your code below print (numbers) If N is not found in the list output -1. ip: Remember the break a codio.com Online C Mathway Announce...Home-. Mail-dam Mail-dam ) Codio Codio Proj Codio.c N int (sys.argv[2]) Program Failed for Input 1,3,11,42,12 # Convert the list of strings into integers 7 numbers- [ 8for i in sys.argv[1].split(","): if(i.isdigit)): 18 numbers.append (int ()) # numbers now contains the list of integers 12 13 14 15 16 Output:-1 Your Program Output:(1, 3, # Write your code below print (numbers) 11. 42. 12 Your output was incorrect. Try aain
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
