The goal is to ask a user for numbers and return sum, avg, min, max. How would I get the min and max without using a function?
from cs50 import get_int
n= -1
sum = 0
while n <= 1:
n=get_int('Type an integer>1: ')
print('read',n)
num_of_ints_to_be_read = n
while n >= 1:
number = get_int('type an integer: ')
sum += number
n -= 1
print()
print()
print('The sum is ', sum)
print('The average is ', sum / num_of_ints_to_be_read)
print('The min is ', )
print('The max is ', )
#print()
#print()
#input('type anything to finish')
#Cant use functions for min and max