Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #truthy or falsy function
- def truthy_or_falsy_function(d):
- if d:
- print(f"the value {d} is truthy")
- else:
- print(f"the value {d} is falsy")
- truthy_or_falsy_function(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement