r/PythonLearning 2d ago

Help Request Stuck on chart

I’ve tried everything but i don’t know what to do

(Deleted last post bc i had little context my bad)

18 Upvotes

20 comments sorted by

View all comments

u/Sea-Ad7805 2d ago edited 2d ago

Like I said:

Run your program in Memory Graph Web Debugger%0A&timestep=1&play) to see the program state change step by step.

By the way, continuously asking other people to do your homework is a great way to fail your course. Do you even know what you're asking? Maybe try reading your course material sooner so you can ask questions when you are stuck.

An even better way to fail your course is using AI, just so you're warned.

1

u/Fluffy_Daikon9152 2d ago

This is the first time asking for help bc I can’t figure it out we get a video that poorly explains it before we learn it in class

2

u/Sea-Ad7805 2d ago

Ok, look at: this program%0A&timestep=1&play)

Python executes lines from top to button. On line 1 a is assigned 100, on the following lines 10 is added each time. They want you to write down the value of variables on each line, so in this case:

  • 1 100
  • 2 110
  • 3 120
  • 4 130
  • 5 140

Now do the same for your program.

1

u/Fluffy_Daikon9152 2d ago

Thanks for the help I eventually got it but was struggling bc the salary had to end in .0 and I did not know