choose the correct function to convert the users response to the number 3.5. >>> answer = input(\how much…

choose the correct function to convert the users response to the number 3.5. >>> answer = input(\how much does the sample weigh in grams? \) how much does the sample weigh in grams? 3.5 >>> numberanswer = (answer)
Answer
Explanation:
Step1: Identify the data type conversion needed
The input from the input function is a string. We need to convert it to a floating - point number.
Step2: Recall the appropriate Python function
In Python, the float() function is used to convert a string representing a number (integer or floating - point) to a floating - point number.
Answer:
float(answer)