Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
using class
#4
That is what you are doing - increasing each rocket height by 10 in a loop and displaying the result. All rockets start from 10, so the final height is 20.
That's why I ask you to post the actual assignment - what you explain in words and what you display as "expected result" does not match - e.g. the expected result suggest that first one in the list does not move up at all. It's unclear do you have to move the rocket by different distance, or e.g. simply initialize them with different height,
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

Reply


Messages In This Thread
using class - by Carloggy - Dec-20-2019, 10:52 AM
RE: using class - by buran - Dec-20-2019, 11:01 AM
RE: using class - by Carloggy - Dec-20-2019, 11:07 AM
RE: using class - by buran - Dec-20-2019, 11:13 AM
RE: using class - by Carloggy - Dec-20-2019, 11:14 AM
RE: using class - by buran - Dec-20-2019, 11:15 AM
RE: using class - by Carloggy - Dec-20-2019, 11:20 AM
RE: using class - by ichabod801 - Dec-20-2019, 01:30 PM
RE: using class - by Carloggy - Dec-20-2019, 01:53 PM
RE: using class - by buran - Dec-20-2019, 01:55 PM
RE: using class - by Carloggy - Dec-20-2019, 02:05 PM
RE: using class - by ichabod801 - Dec-20-2019, 03:44 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020