Advertisement
python_notes

Syntax error

Aug 18th, 2014
527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. # Resource:   https://docs.python.org/2/tutorial/errors.html
  2.  
  3.  
  4. # Syntax means the arrangement and order of words in a sentence or symbols in a program. basically the error means you # did something in an order Python was not expecting or it expected something that you missed.
  5.  
  6.  
  7.  
  8. # Example
  9.  
  10.  
  11. >>> while True print 'Hello world'
  12.   File "<stdin>", line 1, in ?
  13.     while True print 'Hello world'
  14.                    ^
  15. SyntaxError: invalid syntax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement