old_name = 'State College of Iowa' new_name = 'University of Northern Iowa' count_old = 0 for ch in old_name: count_old += 1 count_new = 0 for ch in new_name: count_new += 1 if count_old < count_new: print('Old name is shorter') elif count_new < count_old: print('New name is shorter') else: print('The names are the same length')