Ideas for Practice¶
It’s time for you to get out there and start building things with Python. Start small and simple. To practice the concepts from this Chapter on classes, I would recommend writing some simple code which uses classes. Try and use other things you learned in this course as well. For example, make use of data structures, if else
statements, for loops
, while loops
, and so on. Maybe you even want to set up a virtual environment and small project in Pycharm like we learned in Chapter 5. You could install some cool libraries you are interested in and write some small classes that use those libraries. Have Fun!
A simple task to get started would be improving the TransitBus
class. Last time I checked I think you could have negative passengers on a bus!