1.Create a Python code file named M3Lab_FirstLast.py (replace "FirstLast" with your own name) 2. Add a title comment block to the top of the new Python file using the following form # A brief...

1 answer below »
1.Create a Python code file named M3Lab_FirstLast.py

(replace "FirstLast" with your own name)
2. Add a title comment block to the top of the new Python file using the following form

# A brief description of the project
# Date
# CSC-121 M3Lab – Lists
# Your Name 3. Write a program that asks the user to enter a series of ten numbers. The program is to store the numbers in a list 4. Write a function that accepts the created list as an argument and displays the following: (70 points)

  • The lowest number in the list

  • The highest number in the list

  • The total of the values in the list

  • The average of the numbers in the list


5. Ask the user to enter a number, this number will be used in the following step. 6. Write a function that accepts the created list and the number as arguments. The function is to display all the numbers in the list that are greater than then number. (20 points)
Note: Write program Pseudocode (detail algorithm) and add it as a comment block to the submitted program. (10 points)
Answered Same DayJun 09, 2021

Answer To: 1.Create a Python code file named M3Lab_FirstLast.py (replace "FirstLast" with your own name) 2. Add...

Aditya answered on Jun 10 2021
139 Votes
# A brief description of the project
# Date
# CSC-121 M3Lab – Lists
def listInformation(listOfNum
bers):
print('Numbers in list: ',listOfNumbers)
max = -9999
min = +9999
total = 0
for i in listOfNumbers:
total = total + i
if i > max:
max = i

if i < min:
min = i

print('Highest Number in list: ',max)
print('Lowest Number in list: ',min)
print('Total of Numbers in list: ',total)
print('Average Of Numbers in list: ',total/10)
def compareNumber(listOfNumbers, number):
for i in listOfNumbers:
...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here