Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN PYTHON 1) Write a program to locate the index location of a number within a given list. For this exercise, use a while loop

IN PYTHON
image text in transcribed
1) Write a program to locate the index location of a number within a given list. For this exercise, use a while loop to iterate through the given List to find the index position of a given number. For example: lst =[10,99,98,85,45,100,59,65,66,76,12,35,13,100, 80,95] What is the index location of 100 ? Result: There is a 100 at index no: 5 There is a 100 at index no: 13

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions