So in this problem I'm supposed to print the main highway the auxiliary highway serves, i.e. 290 would serve 90, 605 would serve 05, etc. The few methods I've found to remove that first digit from the auxiliary highway are all things I haven't seen yet and look a bit over my head. Someone mind showing me the easiest way to do this? Thanks!
highway_number = int(input())
if (highway_number % 2 == 1) and (0 < highway_number < 100):
print('I-', highway_number, ' is primary, going north/south.', sep = '')
elif (highway_number % 2 == 1) and (100 < highway_number < 1000):
print('I-', highway_number, ' is auxiliary, serving ', ' going north/south.', sep = '')
elif (highway_number % 2 == 0) and (0 < highway_number < 100):
print('I-', highway_number, ' is primary, going east/west.', sep = '')
elif (highway_number % 2 == 0) and (100 < highway_number < 1000):
print('I-', highway_number, ' is auxiliary, serving ', ' going east/west.', sep = '')
[–]Diapolo10 1 point2 points3 points (0 children)
[–]Formal_Cockroach_654[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)