Quiz Question 1 of 5
Given the function definition and subsequent function call, identify the correct description of their relationship and usage.
def water_plant(amount):
print("Watering plant with", amount, "liters of water")
water_plant(2.5)
Choose the correct answer below:
-
A
The function
water_plant
is called before it is defined, which is incorrect. -
B
The function
water_plant
does not accept parameters and hence, is incorrectly used here. -
C
The function
water_plant
definition is incomplete without a return statement. -
D
The function
water_plant
is defined and called with a float argument.