Question: WILL UPVOTE!! Question 7 2.5 pts Consider the following Python code x=1 y=10 Which of the following will produce an error when executed? print(x+stry print(x
WILL UPVOTE!!

Question 7 2.5 pts Consider the following Python code x="1" y=10 Which of the following will produce an error when executed? print(x+stry print(x +y) print(str(x) +st(y)) print(int(x)+ float(y) Question 8 2.5 pts The function convert_to_grade takes in a number and returns the corresponding letter grade. The function convert to text takes in a letter grade and returns a string that contains words of encouragement based on the letter grade. Which of the following is used to get some words of encouragement for someone whose score is stored in the variable x? print(convert to _text(convert to_grade(x)) print(convert_to_grade(convert to_letter(x) print(convert to text(x)) print convert_to_grade((convert to_grade(x)) print convert to_text((convertto text(x))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
