Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # str_check.py
- def check(s):
- print s,'is',isinstance(s, str)
- check(['abc'])
- check(('abc'))
- check(('abc',)) # comma added to remain as tuple
- check({'abc'})
- check('abc')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement