Jan-30-2020, 09:35 AM
(This post was last modified: Jan-30-2020, 10:25 AM by blackjesus24.)
Hi there, i'm trying to print my code but it gives me this error:
Error: File "C:\Users\jay\Desktop\asd.py", line 6
print("Checking in passenger: " + current_passenger)
^
TabError: inconsistent use of tabs and spaces in indentation
[Finished in 0.1s with exit code 1]
Here is my code.def passengers(not_checked_in, checked_in): """Simulate passengers who are not checked in.""" while not_checked_in: current_passenger = not_checked_in.pop() print("Checking in passenger: " + current_passenger) checked_in.append(current_passenger) def show_checked_in_passengers(checked_in): print("\nThe following passengers have been checked in ") for passengers in checked_in: print(passengers) not_checked_in = ["Jay Senyani"] checked_in = [] passengers(not_checked_in, checked_in) show_checked_in_passengers(checked_in)I'm new at python so any help would be much appreciated :-)