Question 1
In Python, what is the best description of a "variable"?
Question 2
What is the data type of the value "7.5" in Python?
Question 3
What is the data type of the value 10 in Python?
Question 4
True or False: The input() function in Python always returns a string value, even if the user types in numbers.
Question 5
What will the following line of code print to the screen? print(5 + 2 * 3)
Question 6
What will the following line of code print to the screen? print(10 % 3)
Question 7
What will the following line of code print to the screen? print("5" + "3")
Question 8
What is the correct way to write a single-line comment in Python?
Question 9
What is the primary purpose of the import math statement?
Question 10
Which line of code will correctly print the value of the user_name variable inside a sentence?
Question 11
The following code is supposed to ask a user for their age and then calculate their age next year. However, it crashes when run. Broken Code: current_age = input("How old are you? ") age_next_year = current_age + 1print(f"Next year you will be {age_next_year}.") In the text box below, please do two things: Explain in one sentence why this code crashes. Write the corrected line of code that will fix the bug.
Question 12
What is the main purpose of the int() function in Python?