CBSE Class 10 Computer Applications Question 4 of 31

Python Revision — Question 2

Back to all questions
2
Question

Question 2

Which statement/function will you use to get value for a variable from keyboard ?

  1. get
  2. cin
  3. raw_input
  4. raw_in
Answer

raw_input

Reason — The raw_input function is used to get value for a variable from keyboard.