Thread: Noob code help

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    3
    Rep Power
    0

    Noob code help


    Hey guys ive honestly tried to figure out my error here, its pretty simple code im sure you can figure it out.
    Btw this is written in eclispe.

    my_name = 'sean'
    my_age = 16
    my_weight = 120
    my_height = 64
    my_eyes ='blue'
    my_teeth ='white'
    my_hair = 'blonde'
    print ("lets talk about %s" % my_name)
    print (" %d inches tall" % my_height)
    print (" %d pounds heavy" % my_weight)
    print ("ive got %s eyes and %s hair" % (my_eyes, my_hair))
    #messed up on the code above, parantheses should be once continuos thing not 2 breaks,
    print ("teeth are usally %s depending on his coffee" % ( my_teeth)


    Here is the error

    File "C:\Users\User\workspace\variables and printing\src\variablesandprinting.py", line 15

    ^
    SyntaxError: unexpected EOF while parsing
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2012
    Posts
    194
    Rep Power
    2
    You forgot closing parenthesis at the end of the last two print lines.

    -Mek
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    3
    Rep Power
    0
    Originally Posted by Mekire
    You forgot closing parenthesis at the end of the last two print lines.

    -Mek
    thank you, just started python today so far its been a good experience. thankyou for the help

IMN logo majestic logo threadwatch logo seochat tools logo