Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

How Do You Do User Input In Python 3.x Help

user input 3.x programming help user input

  • Please log in to reply
2 replies to this topic

#1 Alcamech

Alcamech

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 181 posts
  • Location:In the pursuit of happiness
  • Programming Language:Python
  • Learning:C, Java, C++, C#, Python, JavaScript

Posted 20 July 2012 - 10:18 PM

The title says it all . Ive been searching for hours on trying to figure out how to do user input in python 3.x and I cant figure it out for the life of me . Everything i`ve tried tells me my input wasnt defined . Please help .
  • 0

#2 Flying Dutchman

Flying Dutchman

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1090 posts
  • Location:::1
  • Programming Language:C++, Python

Posted 21 July 2012 - 04:44 PM

With input function. If you want to evaluate input, use eval.
  • 0

The roots of education are bitter, but the fruit is sweet.


#3 balg

balg

    CC Lurker

  • New Member
  • Pip
  • 5 posts
  • Learning:PHP, (Visual) Basic, Python

Posted 30 July 2012 - 05:51 AM

Just as "Flying Dutchman" said, with the input function. You simply define a variable to the input. Example:
urllink = input("Please type a url: ")
  • 0





Also tagged with one or more of these keywords: user, input, 3.x, programming, help, user input

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download