none
Get interger from user input in Python RRS feed

  • Question

  • I am fairly new to Python, and i was wondering how i could pull an integer from user input to use in an if statement,

    I have been using: user_age = input('How old are you') and then age = sys.stdin.readline()

    any help or suggestions are welcome

    Wednesday, October 21, 2015 12:47 AM

All replies

  • jeremy,

    Sorry but you have posted to a forum that deals exclusively with questions/issues about Microsoft Project, a project management application. I suggest you delete your post and try the following:

    http://www.python-forum.org/

    John

    Wednesday, October 21, 2015 1:34 AM