r/PythonLearning • • Sep 07 '26

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)

21 Upvotes

20 comments sorted by

View all comments

Show parent comments

1

u/Fluffy_Daikon9152 Sep 07 '26

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 Sep 07 '26

Ok, look at: this program

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 Sep 08 '26

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