Last active
February 2, 2022 00:27
-
-
Save brentxphillips/3c6b3a0a0bc71ef2a8a51f01ce0a21ca to your computer and use it in GitHub Desktop.
Simple return statements
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
# 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