as you can see, I have an input str variable O turned into p=O.lower() variable to eliminate case sensitivity, but when i compare p (rock in this case) and r, which is r=’rock’, it shows me that the NAME rock is not defined (?). I dont understand, because ‘rock’ is not supposed to be a variable here. I am Stumped.
I have nested the while loop inside a function, then called the function in which the said function was nested. Is this ‘Function-seption’ causing trouble in the program?
P.S I can eliminate this error by simply taking integers as an input, but i want to do this with strings. :3
Za Za is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1