13. (6 points) You have a list called Ist which contains numbers. You want to use the index method to find out if there are any 5's in it and where the first 5 from the left end is. Fill in the blank...


Need done in python


13. (6 points) You have a list called Ist which contains numbers. You want to use the index method to find<br>out if there are any 5's in it and where the first 5 from the left end is. Fill in the blank so that the code will<br>never crash the program.<br>if<br>pos = Ist.index(5)<br>else:<br>pos = -1<br>Why is this code needed?<br>

Extracted text: 13. (6 points) You have a list called Ist which contains numbers. You want to use the index method to find out if there are any 5's in it and where the first 5 from the left end is. Fill in the blank so that the code will never crash the program. if pos = Ist.index(5) else: pos = -1 Why is this code needed?

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here