Python Python Basics (2015) Number Game App Number Game Refinement

IF i put this condition ( if play_again.lower() == 'Y': ), then I am not getting correct output, why so?

IF i put this condition ( if play_again.lower() == 'Y': ), then I am not getting correct output, why so?

2 Answers

.lower will make Y in lower case correct?

Alx Ki
Alx Ki
Python Web Development Techdegree Graduate 14,808 Points

no. it will lower play_again, for example:

"A".lower() == "a"
"A".lower() != "A"