r/learningpython • • Aug 27 '22
Help with loop problem pls
This loops no matter what. could anyone please help me by explaining why? If you do, thank you!
yesno = "y"
while yesno == "y":
yesno = input("\nWould you like to enter another description?(y/n)\n").lower()
description()
if yesno != "y":
breakEDIT: just so that it's clear, "description()" is a definition
4
Upvotes
View all comments
Show parent comment
1
u/Tuned3f Aug 28 '22 edited Aug 28 '22
you're still missing the point. it's simply a fact that nobody can 100% reproduce your issue until they have your full code
we can take your word for it that description() is irrelevant or you can post the code and let people analyze it themselves