Hi, I'm fairly new to coding and I wanted to learn Python. I think it's a really fun and simple to use language. I am having a bit of trouble with this piece of code that I attached, and I also attached what it actually looks like when you compile it. What I want it to do is keep asking the user to input a response if the inputted response doesn't match the values the program can give, and it kinda works but you at the end, in the picture with the compiled code it will keep repeating its self and I don't want that. I want the loop to stop running when the it has the correct inputted response, where the program can provide an output. I've pretty much tried everything I could think of and I still cant figure it out. If anyone could help me that would be greatly appreciated!! or let me know if this isn't clear enough or something.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (5)
I wanted to help but I couldn't see any attachment in your post.
Would you mind edit your post?
Oh I'm sorry I just edited it now thank you for telling me! I wasn't able to upload the second photo but I hope this helps!
There are a few problems with your code.
I hope my answer is clear enough.
Yes, it was very clear!! I can't thank you enough my program actually works now, thank you again and have a wonderful day!
Glad you worked it out!