Quiz Complete, well Done!
Python provides a built-in function called
that gets user input from the keyboard.
Which of the following is NOT a valid variable name in Python?
Which method is used to concatenate strings in Python?
Which data type is used to store a sequence of characters in Python?
When accessing a character using string indexing, what happens if the index is out of range?
local variable
What is string slicing?
What is the result of '42 + '18'?
Which index is used to start string slicing?
A
is a value that cannot be changed.
Which notation is used for string indexing in Python?
What are floats?
A reserved word in Python is also known as a
.
In programming, what does it mean for a variable to have a 'scope'?
What is the result of adding 27 and 13?
constant
What happens if you try to assign a value to a variable that hasn't been declared?
global variable
What is the index value of the first character in a string?
What is the result of str(5) * 6?