Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. Python 2.7.10 (default, Jul 30 2016, 19:40:32)
  2. [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
  3. Type "help", "copyright", "credits" or "license" for more information.
  4. >>> lista = [ 'fisu' ]
  5. >>> moar = """
  6. ... hauki
  7. ... on
  8. ... kala"""
  9. >>> lista.append(moar)
  10. >>> lista
  11. ['fisu', '\nhauki\non\nkala']
  12. >>> for juttu in lista:
  13. ...   print juttu
  14. ...
  15. fisu
  16.  
  17. hauki
  18. on
  19. kala
  20. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement