Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Differentiate the function. r(z) = 2-8 - 21/2 r'(z) =

Answered: 1 week ago