no way to compare when less than two revisions
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| — | de:modul:m319:learningunits:lu05:loesungen:gradesandpoints [2025/06/23 07:45] (aktuell) – ↷ Seite von modul:m319:learningunits:lu05:loesungen:gradesandpoints nach de:modul:m319:learningunits:lu05:loesungen:gradesandpoints verschoben msuter | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== LU05.L03: Grades and Points ====== | ||
| + | < | ||
| + | <code python> | ||
| + | def main(): | ||
| + | points = int(input(' | ||
| + | if points < 0: | ||
| + | print(' | ||
| + | elif points <= 49: | ||
| + | print(' | ||
| + | elif points <= 59: | ||
| + | print(1) | ||
| + | elif points <= 69: | ||
| + | print(2) | ||
| + | elif points <= 79: | ||
| + | print(3) | ||
| + | elif points <= 89: | ||
| + | print(4) | ||
| + | elif points <= 100: | ||
| + | print(5) | ||
| + | elif points > 100: | ||
| + | print(' | ||
| + | |||
| + | |||
| + | if __name__ == ' | ||
| + | main() | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | {{tag> | ||
| + | [[https:// | ||