QuiztudyPREMIUM
Google IT Automation with Python Professional Certificate • STUDY MODE
EXPRESSIONS AND VARIABLES
QUESTION 1 OF 2
What do you call a combination of numbers, symbols, or other values that produce a result when evaluated? Right on! An expression is a combination of values, variables, operators, and calls to functions.
A
An explicit conversionB
An expressionCorrect AnswerC
A variableD
An implicit conversionQUESTION 2 OF 2
Why does this code raise an error: 1 print("1234"+5678) Right on! Python can add a number to a number or a string to a string, but it doesn)t know how to add a number to a string.
A
Because Python doesn)t know how to add an integer or float data type to a string.Correct AnswerB
Because in Python it)s only possible to add numbers, not strings.C
Because in Python it)s not possible to print integers.D
Because numbers shouldn)t be written between quotes.Ready to test your recall?
What do you call a combination of numbers, symbols, or other values that produce a result when evaluated? Right on! An expression is a combination of values, variables, operators, and calls to functions.
A
An explicit conversion
B
An expression
C
A variable
D
An implicit conversion
How confident are you in this answer?