Question 6
Complete the function get_max(a, b) that returns the larger of two numbers. If they are equal, return either one.
def get_max(a, b):
# TODO: Return the larger of a and b
pass
def get_max(a, b):
# TODO: Return the larger of a and b
pass
Question 7
What happens when the command python is entered in a terminal without a filename?
Question 8
Which tool is used to execute Python code line-by-line interactively within a terminal?
Question 9
Which data type does the expression 5 > 3 evaluate to in Python?
Question 10
Fix the logic error in this function that should return the larger of two numbers.
def find_maximum(a, b):
if a < b:
return a
else:
return b
def find_maximum(a, b):
if a < b:
return a
else:
return b
