LU05.L03: Grades and Points

TODO SuMa - Video

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()

Marcel Suter, Kevin Maurizi

  • modul/m319/learningunits/lu05/loesungen/gradesandpoints.txt
  • Zuletzt geändert: 2024/03/28 14:07
  • von 127.0.0.1