logo codesdope

issue with program

   Karan Kalia , Chandigarh engineering college

pass = 35
marks = input()
print "marks are more than passing marks",marks>pass

getting error :  

  File "<stdin>", line 1
    pass = 35
SyntaxError: invalid syntax
Unknown error.


why the error is coming


  •    Amit Kumar , I.I.T. Patna

    It is because pass is a keyword in Python and is reserved. So, you can't use as a variable. You can see the list of reserved words in this chapter.

Share what you know
Write your answer

Welcome.please sign up.


Welcome.please login.