What is the average value of the following Python code snippet?
>>>grade1 = 80
>>>grade2 = 90
>>>average = (grade1 + grade2) / 2
>>>grade1 = 80
>>>grade2 = 90
>>>average = (grade1 + grade2) / 2A. 85.0
B. 85.1
C. 95.0
D. 95.1
Answer: Option A
Related Questions on Data Types and Numeric Types
What data type is used to represent a sequence of characters in Python?
A. string
B. char
C. text
D. str
What is the purpose of the str() function in Python?
A. To convert a string to a number
B. To format strings
C. To concatenate strings
D. To convert a number to a string

Join The Discussion