Question: Write a python program that creates a list B, and then asks the user to enter a value (for example k). The program checks all

Write a python program that creates a list B, and then asks the user to enter a value (for example k). The program checks all values in B and prints only those values greater than k.

Algorithm (pseudocode):

1. Crate a list B with values 10.5, 12, 5, 7, 19.55, and 3.1

2. asks user to enter value, K

3. set L to be the number of items of B

4. for i from 0 to L-1:

5. if B[i] > K:

6. print B[i] #use end=' '

fast, i will rate

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!