Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = """w' o "w"""
- repr(s) #Output ' \ 'w\\\ 'o"w\ ''
- str(s) #Output 'w\' o"w'
- eval(str(s)) == s #gives a syntax error
- eval(repr(s)) == s #output: True
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement