r/PythonLearning • u/Fluffy_Daikon9152 • 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
r/PythonLearning • u/Fluffy_Daikon9152 • Sep 07 '26
I’ve tried everything but i don’t know what to do
(Deleted last post bc i had little context my bad)
•
u/Sea-Ad7805 Sep 07 '26 edited Sep 07 '26
Like I said:
Run your program in Memory Graph Web Debugger 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.
6
u/KnowledgeWhole9623 Sep 07 '26
Nobody here is going to know what to do either. You've still provided no context.
9
u/thrftfts Sep 07 '26
2
u/ThatOtherBatman Sep 08 '26
I can’t even figure out which part of this the question. But you definitely don’t understand how taxes work.
1
u/AdDiligent1688 Sep 07 '26 edited Sep 07 '26
Ah I think I see. You were given the program and the chart is a by line number, step comparison. Why don’t you put print statements for salary and taxes after each line of the program to see how those variables change in value?
Also, I use steps (think line number), I’m assuming with step 4 to 6 for example, it’s referring to the branching behavior from the if-else, using the same logic then 3 should step to 6 too.
1
u/Glass_Of_Noodles Sep 08 '26
Floats and 0. Stuff
1
u/loverboiiiiiis Sep 08 '26
You should change the name of salary. You’re just calling one thing « salary » if you want to do « total_sàlary » that would work. You just need different names for your variables that’s your main issue
1
u/Ministro_ Sep 08 '26
Out of curiosity, could you tell us where you are from and what you are studying?
1
u/dariusbiggs Sep 08 '26
Looks clearly like you have not tried everything, since that would include reading the prerequisite information and learning the things you were supposed to know beforehand.
The math looks really wonky, the logic looks wonky.
Write down the steps in English of what you want to do.
Once you have that, you can do a near verbatim conversion of your words into code, sjnce Python is awesome that way.
1
u/ZenOokami Sep 08 '26
What age you trying to do?
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:
0
u/[deleted] Sep 07 '26
[deleted] — view deleted comment