Python: Round the numbers of a given list, print the minimum and maximum numbers and multiply the numbers by 5
Round Numbers, Find Min/Max, Multiply by 5
Write a Python program to round the numbers in a given list, print the minimum and maximum numbers and multiply the numbers by 5. Print the unique numbers in ascending order separated by space.
Visual Presentation:
Sample Solution:
Python Code:
Sample Output:
Original list: [22.4, 4.0, 16.22, 9.1, 11.0, 12.22, 14.2, 5.2, 17.5] Minimum value: 4 Maximum value: 22 Result: 20 25 45 55 60 70 80 90 110
Flowchart:
For more Practice: Solve these Related Problems:
- Write a Python program to round numbers and determine the minimum and maximum values.
- Write a Python program to sort a list of numbers after rounding.
- Write a Python program to multiply each rounded number by a factor.
- Write a Python program to find the most frequent rounded number in a list.
Go to:
Previous: Write a Python program to round every number of a given list of numbers and print the total sum multiplied by the length of the list.
Next: Write a Python program to create a multidimensional list (lists of lists) with zeros.
Python Code Editor:
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.