Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

user input in python 2.7?

I need to break a loop when the user doesnt supply any input and just presses the enter key. I tried

if var==None

break

but i need something to replace the None which will specify that there is no user input.

Thanks

There are no answers yet.
Be the first to answer this question.