Question
highway_number = int(input()) if highway_number == 0: print(highway_number, 'is not a valid interstate highway number.') if highway_number in range(1, 99+1): if highway_number % 2 ==
highway_number = int(input()) if highway_number == 0: print(highway_number, 'is not a valid interstate highway number.') if highway_number in range(1, 99+1): if highway_number % 2 == 0: print('I-'+str(highway_number),"is primary, going east/west.") else: print('I-'+str(highway_number),"is primary, going north/south.") else: served = highway_number % 100 if highway_number >= 1000: print(highway_number, 'is not a valid interstate highway number.') if highway_number in range(99, 999+1): if highway_number % 2 == 0: print('I-'+str(highway_number), 'is auxiliary, serving I-'+'%.f,' %served,'going east/west.') else: print('I-'+str(highway_number), 'is auxiliary, serving I-'+'%.f,' %served, 'going north/south.')
I get error code:
Output differs. See highlights below. Special character legend
Input
200
Your output
I-200 is auxiliary, serving I-0, going east/west.
Expected output
200 is not a valid interstate highway number.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started