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
Get step-by-step solutions from verified subject matter experts
