I am in an intro to programming class and we are learning in python: def counter0(): """ result: ask user repeatedly (in a loop) to type in a whole number OR 'q' to quit and then, when the user types...


I am in an intro to programming class and we are learning in python:



def counter0():
"""
result: ask user repeatedly (in a loop)
to type in a whole number OR 'q' to quit
and then, when the user types 'q'
print:
--how many numbers entered,
--sum of numbers entered,
--max of numbers entered,
--average of numbers entered


Sample run:


type a whole number or 'q' to quit: 10
type a whole number or 'q' to quit: 20
type a whole number or 'q' to quit: 30
type a whole number or 'q' to quit: 40
type a whole number or 'q' to quit: q


you typed 4 numbers
sum = 100.0 average = 25.0 max = 40.0
"""



Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here