Skip to content

Instantly share code, notes, and snippets.

@brentxphillips
Last active February 2, 2022 00:27
Show Gist options
  • Save brentxphillips/3c6b3a0a0bc71ef2a8a51f01ce0a21ca to your computer and use it in GitHub Desktop.
Save brentxphillips/3c6b3a0a0bc71ef2a8a51f01ce0a21ca to your computer and use it in GitHub Desktop.
Simple return statements
# Class excercise
# Return statements practice
def helloworld():
print("hello world")
helloworld()
def isodd(num):
if num%2>0:
return True
else:
return False
print(isodd(5))
def tip(money):
tip = money*.18
return tip
print(tip(100))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment