Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- from __future__ import print_function, unicode_literals
- my_str1='whatever'
- my_str2='''this is a string
- that spanes multiple lines
- '''
- my_path=r'c:\windows\newdir\test\whatever'
- print(my_str1)
- print(my_str2)
- print(repr(my_str2))
- print(my_path)
- my_str3=' whatever is your name is your name\n\n\n\n'
- print (my_str3.strip())
- print (my_str3.lstrip())
- print (my_str3.rstrip())
- ip_addr='192.168.1.1'
- print(ip_addr.split('2'))
Add Comment
Please, Sign In to add comment