Getting Started with Python · Class 11 · CBSE · Science Computer Science
In Python's interactive mode, what does the prompt >>> generally indicate?
Practice question from Getting Started with Python (Class 11 · CBSE · Science Computer Science), with the correct answer and a step-by-step solution.
easy · MCQ · Q-F2CDCD
In Python's interactive mode, what does the prompt >>> generally indicate?
- A.Python is ready to receive a commandCorrect answer
- B.Python has detected a syntax error
- C.A Python program has finished execution
- D.Python is displaying the value of a variable
Solution
The prompt >>> is displayed by the Python interpreter when it is ready to accept a command in interactive mode.
More from Getting Started with Python
- What will be printed when the following Python code is executed and the user enters 12 on the first line and 3 on the second line? a = inpu…
- Explain the difference between a syntax error and a runtime error in Python, and give one example of each.
- Which of the following is a valid Python identifier?
- What is the output of the following Python code? x = 7 y = 2 print(x // y, x % y)
Practise more Computer Science
Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.
Start practising freeFree to start · No credit card needed