Question
using python 3.7.2 solve the problem please A) Use a for loop to make 10 random numbers between 20 and 30and store them in a
using python 3.7.2 solve the problem please
A) Use a for loop to make 10 random numbers between 20 and 30and store them in a variablenumList.
( Hint: usenumList.append(number), wherenumberis arandomintbetween 20 and 30 )
B) Sort the list. You may not use the sort(), sorted() or any other built-in python function!
( Hint: use 2 nested for loops as shown on class page )
C) Show the sorted list and the unsorted list
D) Find the sum, and average of the numbers in numList . You mainnot use sum() or average() python functions!
( Hint: use for loop)
E) Find the median of the list.
( Hint for 10 numbers the median is the average of the two numbers in the middle)
F) Show how many numbers are evenly divisible by 2
G)Submit the Output of your program (A-F)as a multiline comment at the bottom of your program .
i try to solve but i have syntax error, can i get help please?
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