L5Q3
unknown
plain_text
9 months ago
280 B
18
Indexable
def run():
x = int(input("Number of students : "))
t = 0
while x < 0 :
x = int(input("Incorrect Input. Number of students : "))
for i in range(int(x)) :
y = float(input(f"Student {i+1} : "))
t = t + y
print(f"Total score : {float(t)}")
Editor is loading...
Leave a Comment