Python Tutorial for Beginners - 002 - User Input and Conditions[HD]

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
7,980
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 7, 2010

This the second installment in my series of Python tutorials for beginners! It covers user input and conditional statements. You may need to watch the first tutorial to fully understand some of the concepts in this video :D


thenewboston python for beginners tutorial thenewboston python for beginners tutorial thenewboston python for beginners tutorial thenewboston python for beginners tutorial thenewboston python for beginners tutorial

python for beginners 2 python for beginners 2 python for beginners 2 python for beginners 2 python for beginners 2 python for beginners 2

  • likes, 2 dislikes

Link to this comment:

Share to:

Uploader Comments (T3kB0i8P)

  • how did you make the print word purple?

    cant do it

  • @malaysiaboi have you already saved the file as a .py?

  • how did you got print purple?

  • @multimediahelp1 Are u saving it as 'filename'.py because the py is important

  • grr, I get the colours when i first start the program, but the second i save it, the colours go

    how do i over come this?

    (im on a mac if that helps...)

  • @Brucy6666 make sure that you save the file as *nameofthefile*.py

    If you dont put the .py the program wont execute and the colours disappear.

Top Comments

  • @whizr1998

    Or you can search "download python for mac" in google and click on the official python website

  • how do u get it for mac

Video Responses

see all

All Comments (63)

Sign In or Sign Up now to post a comment!
  • @lightichigo um. that didnt turn out to well. sorry bout that

  • @lightichigo So if im understanding right, you want to make a code for if they get the question right or wrong, they receive a response? I'll type in code, but i didnt get the exact tab length and indentatons right:

    def numberquestion(): question=input('What is 3x9? Type in number form'); if question==27: print 'You got it right' else: print: 'You actually got this wrong! You should be ashamed.' print 'Goodbye now!'

  • i need some help what, so i am trying to make something a little different from this video. i am trying to ask some one "what is 3x9"

    i want to put if the answer is 27 print "you are smart" but i dont know how to make it say if something is 27 print "you are smart" not if something is greater or of something is smaller than something

  • If you kids are asking stupid questions like "where do i get this" .. you shouldnt be trying to learn how to program. You should master the internet before trying to write programs that will interact with it..

    btw, follow @Verrsatiile for more python help

  • @porshtstudios you should try switching input to raw_input and see if that works. I had a similar problem and this fixed my issue

  • I figured it out. instead of using input, I got it to work using raw_input. I was reading on Daniweb that we should always use raw_input instead of input. what are your prefrences?

  • Can you request the users name with input? I tried these two lines and get an error:

    code:

    name = input ("Please enter your name: ")

    print "Your name is", name, "!"

    end code:

    I get nameerror: name 'usdblades' is not defined

  • @isumu thank you, I'm sorry

    I'm late to reply, I was on holiday.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more