Advertisement
Guest User

Python While Loop Syntax Error!?

a guest
Aug 24th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. a=10
  2. while a>0:
  3.     a-=1
  4.     print a
  5. b=45
  6.  
  7. """Copy pasting the above block into the terminal, then gives me an error! It says
  8.  
  9. File "<stdin>", line 4
  10. b=45
  11. ^
  12. Syntax Error: invalid syntax
  13. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement