Dec-20-2019, 01:55 PM
(Dec-20-2019, 01:53 PM)Carloggy Wrote: Would you share me your ideas pls?
(Dec-20-2019, 01:30 PM)ichabod801 Wrote: the way I would do it is to have two parameters for Rocket.__init__: name and height. Then before the loop where you create the rocket instances, set a variable named height to 10. Then each time through the loop you: create an instance, passing the name and the height variable as arguments, and you increase the height variable by 10.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs