SyntaxError: invalid syntax in Python

Discussion in 'Software' started by Chrys_Nemo, Mar 2, 2012.

  1. Chrys_Nemo

    Chrys_Nemo

    Joined:
    Mar 2, 2012
    Messages:
    1
    Hello everyoane...I'm new in programing and I start with python couse I herd is the most potrivite for the beginers.But I came across a problem.I think it-s a bug and I don't know how to deal with it.

    I want to make a small program to calculate me , an ecuation of the second type.
    I input the data("x",y","z") and I ask python to calculate and give me the answer but all he give me its an error.(See the title)

    Python 3.2.2 (default, Sep 4 2011, 09:51:08) [MSC v.1500 32 bit (Intel)] on win32
    Type "copyright", "credits" or "license()" for more information.

    Exemple:

    #Ecuatia de gradul 2

    x = input ("x:")
    y = input ("y:")
    z = input ("z:")

    print x**2-4*y*z

    And Python answer:

    SyntaxError: invalid syntax

    I curently use Python 3.2 and windows XP.

    I just want some advice.
    Chrys_Nemo, Mar 2, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gornk

    Invalid Syntax Error

    gornk, Aug 18, 2004, in forum: Computer Support
    Replies:
    1
    Views:
    5,546
    A String
    Aug 20, 2004
  2. trey.tull@gmail.com

    Command line syntax is Invalid????

    trey.tull@gmail.com, Apr 24, 2007, in forum: Computer Support
    Replies:
    1
    Views:
    1,029
  3. darkie

    Python, syntax error for nothing

    darkie, Jan 18, 2009, in forum: Software
    Replies:
    0
    Views:
    1,315
    darkie
    Jan 18, 2009
  4. partyin
    Replies:
    0
    Views:
    1,063
    partyin
    Feb 21, 2012
  5. Zuflus

    I get invalid syntax on python scripting

    Zuflus, Aug 22, 2012, in forum: General Computer Support
    Replies:
    0
    Views:
    1,051
    Zuflus
    Aug 22, 2012
Loading...

Share This Page