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