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 quitand 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: 10type a whole number or 'q' to quit: 20type a whole number or 'q' to quit: 30type a whole number or 'q' to quit: 40type a whole number or 'q' to quit: q
you typed 4 numberssum = 100.0 average = 25.0 max = 40.0"""
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here