Created
March 1, 2018 17:10
-
-
Save Pierian-Data/fe805b11d6dc41ae447a1bafc7906bed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def myfunc(x): | |
if x == True: | |
# print('Hello') | |
return 'Hello' | |
elif x == False: | |
# print('Goodbye') | |
return 'Goodbye' |
def my_num(x = 17):
if x:
return('Hello')
elif not x:
return('Goodbye')
my_num()
`def check_num(num):
if num:
return 'Hello'
else:
return "Goodbye"
num = 7 > 5
print(check_num(num))`
def myfunc(a):
if a == True:
return 'Hello'
elif a == False:
return 'Goodbye'
myfunc(True)
def my_function():
if x==True:
return 'Hello'
elif x==False:
return 'Goodbye'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
def myfunc(a):
if a == True:
return 'Hello'
elif a == False:
return 'Goodbye'