QUESTION IMAGE
Question
jump to level 1
two cities are read from input into variables city1 and city2. then, two state codes are read from input into variables state_code1 and state_code2. create a list named cities_list to hold city1 and city2, and create a list named state_codes_list to hold state_code1 and state_code2.
click here to show example
1 city1 = input()
2 city2 = input()
3 state_code1 = input()
4 state_code2 = input()
5
6 \\\ your code goes here \\\
7
8 print(cities_list)
9 print(state_codes_list)
Step1: Create cities list
cities_list = [city1, city2]
Step2: Create states list
state_codes_list = [state_code1, state_code2]
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
city1 = input()
city2 = input()
state_code1 = input()
state_code2 = input()
cities_list = [city1, city2]
state_codes_list = [state_code1, state_code2]
print(cities_list)
print(state_codes_list)