Answered step by step
Verified Expert Solution
Question
1 Approved Answer
All in Python. Q 1 . Get user input for a list of numbers. Write a program to turn every item of a list into
All in Python.
Q Get user input for a list of numbers. Write a program to turn every item of a list into its square. You cannot assume the size of the list. You must get the list of numbers from the user by using the concept of indefinite loop.
Q Part
Prompt the user to enter four numbers, each corresponding to a person's weight in pounds. Store all weights in a list. Output the list.
Example:
Enter weight :
Enter weight :
Enter weight :
Enter weight :
Weights:
Part
Output the average of the list's elements with two digits after decimal point. Hint: Use conversion specifier to output with a certain number of digits after the decimal point.
Part Output the max list element with two digits after the decimal point
Part Prompt the user for a number between and Output the weight at the user specified location.
Part Sort the list's elements from least heavy to heaviest weights and output the sorted list.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started