Computer Science, asked by sushmi2105, 1 year ago

python program to generate the ticket numbers for specified number of passengers traveling in a flight

Answers

Answered by Niharradke
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