Question: Primary U . S . interstate highways are numbered 1 - 9 9 . Odd numbers ( like the 5 or 9 5 ) go

Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and even numbers (like the 10 or 90) go east/west.
Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, I-405 services I-5, and I-290 services
I-90.
Note: 200 is not a valid auxiliary highway because 00 is not a valid primary highway number.
Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary)
highway runs north/south or east/west.
Note: Here you need to use if-elif-else nested with if-else
Sample runs:
Enter highway number: 290
I-290 is auxiliary serving I-90, going east/west
Enter highway number: 300
300 is not a valid interstate highway number
Enter highway number: 55
I-55 is primary, going north/south.
Enter highway number: 80
I-80 is primary, going east/west.
Enter highway number: -5
-5 is not a valid interstate highway number
Enter highway number: 451
I-451 is auxiliary serving I-51, going north/south
Enter highway number: 1000
1000 is not a valid interstate highway number
[[[[[ do nott use def,return and others just use, if ,elif ,else and i will give you like]]]]
python
 Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!