Well done!
You have completed Function Return Values and Usage Quiz!
Quiz Question 1 of 5
Given the following function process_data()
with multiple execution paths, what will the function return if the input_data
is None?
def process_data(input_data):
if input_data is None:
return "No data provided"
elif isinstance(input_data, list):
return len(input_data)
else:
return "Invalid data type"
Choose the correct answer below: