from __future__ import print_function, unicode_literals
import time

# http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
class bcolors:
    HEADER = '\033[95m'
    OKBLUE = '\033[94m'
    OKGREEN = '\033[92m'
    WARNING = '\033[93m'
    FAIL = '\033[91m'
    ENDC = '\033[0m'
    BOLD = '\033[1m'
    UNDERLINE = '\033[4m'


def main():
    print('hi, there!')
    time.sleep(0.010)
    print('let\'s get to know each other better...')
    name = raw_input("Please enter your name: ")
    print(bcolors.BOLD + bcolors.UNDERLINE + 'Hi %s, have a nice day!' % name +
          bcolors.ENDC)
    print('It was a pleasure talking to you...')


if __name__ == '__main__':
    main()

from __future__ import print_function, unicode_literals
import sys, time


PY3 = sys.version_info[0] >= 3

if PY3:
    raw_input = input


# http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
class bcolors:
    HEADER = '\033[95m'
    OKBLUE = '\033[94m'
    OKGREEN = '\033[92m'
    WARNING = '\033[93m'
    FAIL = '\033[91m'
    ENDC = '\033[0m'
    BOLD = '\033[1m'
    UNDERLINE = '\033[4m'


def main():
    print('hi, there!')
    time.sleep(0.010)
    print('let\'s get to know each other better...')
    name = raw_input("Please enter your name: ")
    print(bcolors.BOLD + bcolors.UNDERLINE + 'Hi %s, have a nice day!' % name +
          bcolors.ENDC)
    print('It was a pleasure talking to you...')


if __name__ == '__main__':
    main()

Define raw_input as input under Python 3
Define raw_input as input under Python 3

  from __future__ import print_function, unicode_literals
- import time
+ import sys, time
+ 
+ 
+ PY3 = sys.version_info[0] >= 3
+ 
+ if PY3:
+     raw_input = input
+ 
  
  # http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
  class bcolors:
      HEADER = '\033[95m'
      OKBLUE = '\033[94m'
      OKGREEN = '\033[92m'
      WARNING = '\033[93m'
      FAIL = '\033[91m'
      ENDC = '\033[0m'
      BOLD = '\033[1m'
      UNDERLINE = '\033[4m'
  
  
  def main():
      print('hi, there!')
      time.sleep(0.010)
      print('let\'s get to know each other better...')
      name = raw_input("Please enter your name: ")
      print(bcolors.BOLD + bcolors.UNDERLINE + 'Hi %s, have a nice day!' % name +
            bcolors.ENDC)
      print('It was a pleasure talking to you...')
  
  
  if __name__ == '__main__':
      main()
  
Define raw_input as input under Python 3
## Code Before:
from __future__ import print_function, unicode_literals
import time

# http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
class bcolors:
    HEADER = '\033[95m'
    OKBLUE = '\033[94m'
    OKGREEN = '\033[92m'
    WARNING = '\033[93m'
    FAIL = '\033[91m'
    ENDC = '\033[0m'
    BOLD = '\033[1m'
    UNDERLINE = '\033[4m'


def main():
    print('hi, there!')
    time.sleep(0.010)
    print('let\'s get to know each other better...')
    name = raw_input("Please enter your name: ")
    print(bcolors.BOLD + bcolors.UNDERLINE + 'Hi %s, have a nice day!' % name +
          bcolors.ENDC)
    print('It was a pleasure talking to you...')


if __name__ == '__main__':
    main()

## Instruction:
Define raw_input as input under Python 3
## Code After:
from __future__ import print_function, unicode_literals
import sys, time


PY3 = sys.version_info[0] >= 3

if PY3:
    raw_input = input


# http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python
class bcolors:
    HEADER = '\033[95m'
    OKBLUE = '\033[94m'
    OKGREEN = '\033[92m'
    WARNING = '\033[93m'
    FAIL = '\033[91m'
    ENDC = '\033[0m'
    BOLD = '\033[1m'
    UNDERLINE = '\033[4m'


def main():
    print('hi, there!')
    time.sleep(0.010)
    print('let\'s get to know each other better...')
    name = raw_input("Please enter your name: ")
    print(bcolors.BOLD + bcolors.UNDERLINE + 'Hi %s, have a nice day!' % name +
          bcolors.ENDC)
    print('It was a pleasure talking to you...')


if __name__ == '__main__':
    main()
