But for multiples of 7 it should output “Credit” instead of the number and for the multiples of 5 output “Karma”. For numbers which are multiples of both 7 and 5 output “Creditkarma”.
ASSUMPTIONS:
FLIGHTS = [('SFO', 'DFW'), ('LAX', 'SFO'), ('DFW', 'CLT')]
TRIP: ['LAX', 'SFO', 'DFW', 'CLT']
IF THE ABOVE WORKS, TRY YOUR PROGRAM WITH THE FOLLOWING INPUT:
FLIGHTS = [('DFW','CLT'), ('SFO','DFW'), ('WAS','NYK'), ('LAX','SFO'), ('CLT','WAS')]
TRIP: ['LAX', 'SFO', 'DFW', 'CLT', 'WAS', 'NYK']