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
  • Last modified: 2023/11/13 08:56
  • by 127.0.0.1