Close
Close

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


Answers

  •   

    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.



Ask Yours
Post Yours
Write your answer