L5Q3
unknown
plain_text
10 months ago
279 B
7
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