Loading...
Uploaded by dcbriccetti on Jan 14, 2012
We show how to use Python's input function to get numbers, without the program breaking if something other than a number is entered.
Science & Technology
Creative Commons Attribution license (reuse allowed)
@xCyph0nx Yes, Python 3. Using input() in Python 2 is dangerous, as it evaluates whatever argument is given.
dcbriccetti 1 month ago in playlist Uploaded videos
Are you using Python 3? Because I'm pretty sure input() grabs a number in 2.7.x.
xCyph0nx 1 month ago
Load more suggestions
@xCyph0nx Yes, Python 3. Using input() in Python 2 is dangerous, as it evaluates whatever argument is given.
dcbriccetti 1 month ago in playlist Uploaded videos
Are you using Python 3? Because I'm pretty sure input() grabs a number in 2.7.x.
xCyph0nx 1 month ago