Advertisement
Blessing988

Untitled

Feb 11th, 2020
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. def truthy_or_falsy(a):
  2.     if bool(a)==True:
  3.         print("The value", a ,"is truthy")
  4.     else:
  5.         print("The value", a ,"is falsy")
  6.  
  7.  
  8. truthy_or_falsy("Hello") # Example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement