Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. python3.4
  2.  
  3. Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 23 2015, 02:52:03)
  4. [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
  5. Type "help", "copyright", "credits" or "license" for more information.
  6.  
  7. >>> print("Hello world")
  8. Hello world
  9.  
  10. >>>counter = 5
  11. >>>
  12. >>> while counter > 0:
  13. ... counter -= 1
  14. ... print()
  15. ... print("Hello World")
  16.  
  17. File "<stdin>", line 4
  18. print("Hello World")
  19. ^
  20. SyntaxError: invalid syntax
  21.  
  22. >>> counter = 5
  23. >>> while counter > 0:
  24. counter -= 1
  25. print("Hello")
  26.  
  27.  
  28. Hello
  29. Hello
  30. Hello
  31. Hello
  32. Hello
  33. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement