examples/basics/prompt2.py
from __future__ import print_function

def main():
  name = raw_input('Your name: ')
  print('Hello ' + name + ', how are you?')

main()

In Python 2 always use raw_input() and never input().