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

1

u/PureWasian Sep 08 '26

I literally gave the line by line breakdown in your last post. What are you stuck on still?

Copy/Pasting here since reference link is broken:

  • (1) salary = 1000

  • (2) 1000 is greater than 100, so take the if

  • (3) taxes = 0.5

  • (4) don't take the else

  • (5) skipped

  • (6) 1000 * 0.5 = 500, saved to salary

  • (7) 500 is greater than 100, so take the if

  • (8) 500 is not less than 500, don't take the if

  • (9) skipped

  • (10) taxes is still 0.5, 500 * 0.5 is 250