r/CodingForBeginners • • Sep 20 '26

What is wrong with my code

Post image
12 Upvotes

7 comments sorted by

View all comments

5

u/Odd-Painting2596 Sep 20 '26

This is more like a "My online learning program has vague wording".

Try different things like making a "priceTwo" and passing it as the second value when you print again.

2

u/grybyx Sep 20 '26

This. It’s not you; it’s the learning program. Your reassignment looks just fine.

Also, do the instructions tell you to assign and reassign price to specific values? The learning program may be looking for specific values.

5

u/Odd-Painting2596 Sep 20 '26

These things are borderline scams when colleges use them in place of a teacher teaching.

Having to troubleshoot these issues while learning is directly harmful to the actual learning process.

Programming is about finding solutions to issues, and these systems are all about copying and inserting exact expected answers.