What is raw_input()  and input() in python

Python to prompt a window to enter inputs we will use raw_input() and input() methods.

raw_input() was introduced in Python 2.X version whereas input() method used in Python 3.x versions

 

Prompt window in Python3.x by

def main():
  print("We have a question!")
  name = input('Your name: ')
  print('Hello ' + name + ', how are you?')

main()

 

 

Prompt window in Python3.x by

def main():
  print("We have a question!")
  name = raw_input('Your name: ')
  print('Hello ' + name + ', how are you?')

main()