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 don’t understand, because ‘rock’ is not supposed to be a variable here.
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?
I can eliminate this error by simply taking integers as an input, but I want to do this with strings.
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