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
  • Last modified: 2023/11/13 08:56
  • by 127.0.0.1