aramideoluwatosin

test.py

Apr 11th, 2018
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. from __future__ import print_function, unicode_literals
  4.  
  5. my_str1='whatever'
  6. my_str2='''this is a string
  7. that spanes multiple lines
  8. '''
  9.  
  10. my_path=r'c:\windows\newdir\test\whatever'
  11. print(my_str1)
  12. print(my_str2)
  13. print(repr(my_str2))
  14.  
  15. print(my_path)
  16.  
  17. my_str3=' whatever is your name is your name\n\n\n\n'
  18. print (my_str3.strip())
  19. print (my_str3.lstrip())
  20. print (my_str3.rstrip())
  21.  
  22.  
  23. ip_addr='192.168.1.1'
  24. print(ip_addr.split('2'))
Add Comment
Please, Sign In to add comment