Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: Python

  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Python

    I am extremely new to programming, I began researching and looking for a good way to begin programming as of yesterday. I have downloaded Python 3.0 and a large ebook containing many different tutorials. Unfortunately, I am not even smart enough to finish the first tutorial. I am sure this will be an easy question for most of you...

    The tutorial states:

    >>>> print 'hello world'
    print 2 ** 100

    and when I enter: print 'hello world', it says syntax error and has an arrow like this one "^" pointing to the quotes around the 'hello world'

    Plz Help, It seems like it may be a problem with the interpreter and I may just need to reinstall, but I would like to see some opinions before I do anything.
    Last edited by Fenderstrat89; 07-31-2009 at 10:23 PM.

  • #2
    New to the CF scene
    Join Date
    Aug 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try this.

    print ("hello world")

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Nothing wrong with what you typed unless something has changed in newer versions of Python. See attached screen shot.
    Attached Thumbnails Attached Thumbnails Python-helloworld.png  
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •