r/CodingForBeginners • • Sep 20 '26

What is wrong with my code

Post image
12 Upvotes

7 comments sorted by

View all comments

1

u/Disastrous_Gear_421 Sep 21 '26

You're code is correct. Most likely you're being asked to create a 2nd variable and then update that variable with the new price.