python program to generate the ticket numbers for specified number of passengers traveling in a flight
Answers
Answered by
2
Answer:
airline = AI
source = Bangalore
destination = London
no_of_passengers = 10
output= ['AI:Ban:Lon:106', 'AI:Ban:Lon:107', 'AI:Ban:Lon:108', 'AI:Ban:Lon:109', 'AI:Ban:Lon:110']
airline = BA
source = Australia
destination = France
no_of_passengers = 2
output= ['BA:Aus:Fra:101', 'BA:Aus:Fra:102']xplanation:
Similar questions