Advertisement
ancestor_tunji

#truthy or falsy function

Feb 11th, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. #truthy or falsy function
  2. def truthy_or_falsy_function(d):
  3.     if d:
  4.         print(f"the value {d} is truthy")
  5.     else:
  6.         print(f"the value {d} is falsy")
  7. truthy_or_falsy_function(2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement