Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #a program to check the truthy or falsiness of a number
- show = 1
- def truthy_or_falsy(number): #function definition
- if number: #check for condition one
- return "the value" + " " + str(number) + " "+ "is truthy"
- else:
- return "the value" + " " + str(number) + " " + "is falsy"
- print(truthy_or_falsy("")) #final output print out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement