def check_condition():
#return this if the condition is True
ifRun = "if code block run"
#return this is if the condition is False
elseRun = "else code block run"
if condition == True:
return ifRun
else:
return elseRun
#This is just for you to see what happens when the function is called
print check_condition()
No comments:
Post a Comment