Podcast
Questions and Answers
Which of the following is a Python keyword?
Which of the following is a Python keyword?
- variable
- message
- print (correct)
- world
What is the value of the variable 'message' in the code snippet?
message = 'Hello Python world.'
print(message)
What is the value of the variable 'message' in the code snippet?
message = 'Hello Python world.' print(message)
- Python message world.
- Hello Python world. (correct)
- Hello world.
- Hello Python Crash Course world.
What will be the output of the following code snippet?
message = 'Hello Python world.'
print(Message)
What will be the output of the following code snippet?
message = 'Hello Python world.' print(Message)
- Hello Python Crash Course world.
- NameError: name 'Message' is not defined. (correct)
- Hello Python world.
- Hello world.
What will be the output of the following code snippet?
message = 'Hello Python world.'
print(len(message))
What will be the output of the following code snippet?
message = 'Hello Python world.' print(len(message))
What will be the output of the following code snippet?
message = 'Hello Python world.'
print(message[6:12])
What will be the output of the following code snippet?
message = 'Hello Python world.' print(message[6:12])