Question: Lists at _ bus _ stop and on _ board _ bus are read from input, representing passengers waiting to board a bus and passengers

Lists at_bus_stop and on_board_bus are read from input, representing passengers waiting to board a bus and passengers on the bus, respectively. Perform the following tasks:
- Remove the first element from on_board_bus and output 'Passenger alighted: ' followed by the element.
- Add all the remaining elements of at_bus_stop to the end of on_board_bus.
Click here for example
Note: All passenger names are unique.
```
at_bus_stop = input().split()
on_board_bus = input().split()
print(f'Passengers waiting at a bus stop: {at_bus_stop}')
print(f'Passengers on board: {on_board_bus}')
print(f'Updated passengers on board: {on_board_bus}')
```
Lists at _ bus _ stop and on _ board _ bus are

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!