1. Engineering
  2. Computer Science
  3. can someone help me...

Question: can someone help me...

Question details
Can someone help me
a codio.com Onlin Ma IT-140-J MAT-140 learn.snhu Mail-dam Mail-dam O Codio-... Codio Proj 을 Codio.c # Get our input from the command line import sys 4 N int (sys.argv[2]) CollapseChallenges 3.4. Simple number search # Convert the list of strings into integers 7 numbers [] 8fori in sys.argv[1.split(,) if(i.isdigit)): 10 numbers. append( int ( 1) ) We will pass you 2 inputs # numbers now contains the list of integers 12 13 14 15 16 for i in range (0,100): 17 18 19- else: 20 e an list of numbers Write your code below e a number, N, to look for 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 while numbersN: print(N) print (-1)
a codio.com Onlin Ma IT-140-J MAT-140 learn.snhu Mail-dam Mail-dam O Codio-... Codio Proj 을 Codio.c # Get our input from the command line import sys 4 N int (sys.argv[2]) CollapseChallenges Program Failed for Input 1,3,11,42,12 42 Expected Output: 3 Your Program Output:-1 # Convert the list of strings into integers 7 numbers [] 8fori in sys.argv[1.split(,) if(i.isdigit)): 10 numbers. append( int ( 1) ) # numbers now contains the list of integers 12 13 14 15 16 for i in range (0,100): 17 18 19 else: 20 Write your code below while numbersN: Your output was incorrect. Try print(N) print (-1)
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution