Nov-09-2019, 09:17 AM
Hi people
I am a total noob to programming and trying to learn python from "Python Crash Course".
I am currently working on making the "Alien Invasion" game.
The book tells me to create instances of two classes (from different files) as follows:
Thanks
I am a total noob to programming and trying to learn python from "Python Crash Course".
I am currently working on making the "Alien Invasion" game.
The book tells me to create instances of two classes (from different files) as follows:
self.settings = Settings()
self.ship = Ship(self)Why do I have to use 'self' for one and not for the other?
Thanks