Challenge Code: TU21
Points: 40
This code snippet shows you how you can directly access a list in Python.
For example it would make it much easier to create a ticketing system. In this example we choose the bus going out.
Points: 40
This code snippet shows you how you can directly access a list in Python.
For example it would make it much easier to create a ticketing system. In this example we choose the bus going out.
Exercise 1: Add to the code above so that you can purchase a return ticket.
i.e. You can travel on buses 1,3,5 & 7.
i.e. You can travel on buses 1,3,5 & 7.