Struggling with the discount calculator challenge - any tips?

Hey everyone, I’ve been working through the Python course, and I’m stuck on the discount calculator project. I’ve been trying to learn coding. Free forum discussions like this one have been super helpful so far, but I’m hitting a wall with this particular challenge.

I keep getting confused about how to properly calculate the percentage discount and then apply it to the original price. My code runs, but the output doesn’t match what the tests expect. I think I might be doing something wrong with the order of operations, or maybe how I’m formatting the final result?

Has anyone else completed this project recently? I’ve looked at the instructions like five times already, and I feel like I’m missing something obvious. Should I be using float or keeping everything as integers? Also, do I need to round the final answer?

Would really appreciate any hints or guidance without giving away the full solution. Just want to understand the logic better so I can actually learn from this. Thanks in advance!

You’ll need to share your code and a link to the challenge.

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Get Help > Ask for Help button located on the challenge.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Hi! One tip, remember to divide the discount by 100, so that you apply it in percentage, and remeber to subtract that result from the price.