LU04.L06: Alternativer Notenschnitt

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