Python Python Basics All Together Now Branch and Loop

Dejan Delev
Dejan Delev
461 Points

Can't buy more than 10 tickets?

So up to 9 tickets I get the right answer, but over that it continues as if I pressed "n". Any ideas?

https://imgur.com/8JN2Kge

1 Answer

Pedro Cabral
Pedro Cabral
20,282 Points

You forgot to call the method lower by using a set of (). Also as a suggestion, you can always paste your code here and format it using the Markdown Cheatsheet or eventually fork a workspace. It'll be then easier for other users to hunt for bugs rather than looking at an image which is not possible to interact with and hinders the debugging process.

Dejan Delev
Dejan Delev
461 Points

Thanks a lot! I couldn't figure out how to use the Markdown Cheatsheet when asking the question, that's why I used imgur. I will keep it in mind for the next time I have a question. Cheers!