LU04.L02: Notenschnitt

num_marks = input('Anzahl Noten > ')
count = 0
total_marks = 0
while count < num_marks:
    mark = input('Note >')
    total_marks = total_marks + int(mark)
    count = count + 1
average = total_marks / num_marks
print('Durchschnitt:' + str(average))
  • modul/archiv/m319python/learningunits/lu04/loesungen/notenschnitt.txt
  • Zuletzt geändert: 2024/03/28 14:07
  • von 127.0.0.1