LU06.L03: Grades and Points

def main():
    points = int(input('Give points [0-100]:\n'))
    if points < 0:
        print('impossible!')
    elif points <= 49:
        print(1)
    elif points <= 59:
        print(2)
    elif points <= 69:
        print(3)
    elif points <= 79:
        print(4)
    elif points <= 89:
        print(5)
    elif points <= 100:
        print(6)
    elif points > 100:
        print('incredible!')
 
 
if __name__ == '__main__':
    main()
  • modul/archiv/m319python/learningunits/lu06/loesungen/gradesandpoints.txt
  • Zuletzt geändert: 2024/03/28 14:07
  • von 127.0.0.1