print("Enter a negative score to signal the end of the input.")
total = 0
count = 0
score = int(input("Score: "))
while score >= 0:
count += 1
total += score
score = int(input("Score: "))
print(total/count)
print("Enter a negative score to signal the end of the input.")
total = 0
count = 0
score = int(input("Score: "))
while score >= 0:
score = int(input("Score: "))
count += 1
total += score
print(total/count)
print("Enter a negative score to signal the end of the input.")
total = 0
count = 0
score = int(input("Score: "))
while score >= 0:
total += score
score = int(input("Score: "))
count += 1
print(total/count)
print(βEnter a negative value to signal the end of the input.β)
val = int(input(βValue: β))
max = value
min = value
val = int(input(βValue: β))
while val >= 0:
if val > max:
max = val
if val < min:
min = val
val = int(input(βValue: β))
print(βMaximum value was β + max + β and minimum value was β + min)