def length(str): count = 0 for ch in str: count += 1 return count old_name = 'State College of Iowa' new_name = 'University of Northern Iowa' count_old = length(old_name) count_new = length(new_name) 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')