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 ======
 +<nodisp>TODO SuMa - Video</nodisp>
 +<code python>
 +def main():
 +    points = int(input('Give points [0-100]:\n'))
 +    if points < 0:
 +        print('impossible!')
 +    elif points <= 49:
 +        print('failed')
 +    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('incredible!')
 +
 +
 +if __name__ == '__main__':
 +    main()
 +</code>
 +
 +----
 +{{tag>M319-LU05}}
 +[[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Marcel Suter, Kevin Maurizi
  
  • de/modul/m319/learningunits/lu05/loesungen/gradesandpoints.txt
  • Zuletzt geändert: 2025/06/23 07:45
  • von msuter