Quiz Complete, well Done!
In Python, the
module provides various functions and constants for working with floats.
To perform division in Python, we use the
operator.
What is the result of '42 + '18'?
What happens if you try to add a string and a number together?
What is a use case of Booleans?
Which of the following is a sensible variable name for a variable that stores a person's last name?
What is the scope of a variable declared outside of all functions and classes?
Which operator is used to concatenate two strings?
What is the scope of a variable?
Which of the following is an example of string concatenation?
Which of the following is not a valid variable name?
Which method is used to concatenate strings in Python?
What does the format specifier '{}' indicate?
What is a string?
Which method is used to replace occurrences of a specified string with another string?
A reserved word in Python is also known as a
.
Which of the following is not a sensible variable name for a variable that stores a person's email address?
Which notation is used for string indexing in Python?
Which method is used to find the length of a string?
What does the 'str' variable type stand for in Python?