Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def truthy_or_falsy(a):
- if bool(a)==True:
- print("The value", a ,"is truthy")
- else:
- print("The value", a ,"is falsy")
- truthy_or_falsy("Hello") # Example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement