# We will write some example code in class #first = input('First name? ') #middle = input('Middle name? ') #last = input('Last name? ') # Let's assume this came from input() names = ['Jonathan', 'Robert', 'Anderson'] initial = ord(names[-1][0]) if ord('A') <= initial <= ord('J'): print('Go to EN2043') elif ord('K') <= initial <= ord('S'): print('Go to EN2040') else: print('Go to EN4034')