Created
March 22, 2024 04:58
-
-
Save kamaravichow/c89b95d87e328b94e57ca0af491be85c to your computer and use it in GitHub Desktop.
Run it with python answer.py or python3 answer.py
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
# Define a function called plus_five() that adds 5 to its argument. | |
# Then, define another function named m_by_3() that multiplies the argument (the result obtained from plus_five()) by 3. | |
# Verify your code was correct by calling the second function with an argument of 5. | |
# Was your output equal to 30? | |
def plus_five(number): | |
return number + 5 | |
def m_by_3(number): | |
return number * 3 | |
result = plus_five(5) | |
output = m_by_3(result) | |
print(output) # 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment