def user_input(prompt=''):
 if (PY_MAJOR_VERSION > 2):
  return input(prompt)
 else:
  return raw_input(prompt)

def user_input ( prompt = '' ) : if ( PY_MAJOR_VERSION > 2 ) : return input ( prompt ) else : return raw_input ( prompt )
for getting raw user input in python 2 and 3 .