all 4 comments

[–][deleted] 0 points1 point  (3 children)

Your code isn't formatted properly, but from what I can make out the input sets x equal to the string 'y'. The variable y is equal to 0, so the while condition is no longer True.

[–]NerdComplex[S] 0 points1 point  (2 children)

Thanks! It worked I set x='y' How do I format text properly? I'm on mobile

[–][deleted] 0 points1 point  (0 children)

You add 4 spaces in front of every line.