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