Advertisement
Adehumble

Week3 Coding Exercise 5

Feb 11th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. #5
  2. def truthy_or_falsy(anything):
  3.     if anything=="0" or anything=="":
  4.         result=print("falsy")
  5.     else:
  6.         result=print("truthy")
  7. print("This program test for the truthfulnes and falsiness of a statement")
  8.  
  9. num_char=input("Please, enter anything: ")
  10. truthy_or_falsy(num_char)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement