Question: Can someone help me with this in python, they are essentially the same question with different formats so I put them together. For the following

Can someone help me with this in python, they are essentially the same question with different formats so I put them together.Can someone help me with this in python, they are essentially thesame question with different formats so I put them together. For the

For the following six questions, assume that the variable data refers to the list [10, 20, 30] 1) The expression data[1] evaluates to: 2) The expression data (1:3) evaluate to: 3) The expression data.index(20) evaluates to: 4) The expression data + [40, 50) evaluates to: 5) After the statement data[1] = 5, data evaluates to: 6) After the statement data.insert(1,15), the original data evaluates to: Problem1: Write a Python program that keeps prompting the user integer values till the user enters '', stores the values in Python list (only those values between 1-100), and display the resulting list. A sample output: Please enter a number: 2 Please enter a number: 5 Please enter a number: 3 Please enter a number: 9 [2, 5, 3] Problem2: Write a Python program that prompts the user for a list of integers, stores in Python list only those values between 1-100, and display the resulting list. A sample output: Please enter a number: 2 3 6 5 [2, 3, 6, 5]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!