# -*- coding: iso-8859-15 -*- ######### #+-----+# #|Hello|# #+-----+# ######### import sys import time sys.stdout.write("Hello! How are you doing today?\n\n") sys.stdout.flush() answer = raw_input("\033[1;31;40mIm doing \033[0;38;40m") if(answer.lower() == "great" or answer.lower() == "great!"): sys.stdout.write("\n\033[1;32;40mGood for you!\033[0;38;40m\n") elif(answer.lower() == "good" or answer.lower() == "good!"): sys.stdout.write("\nMe too!\n") elif(answer.lower() == "awesome" or answer.lower() == "awesome!" or answer.lower() == "awesome!!" or answer.lower() == "awesome!!!"): sys.stdout.write("\n\033[1;34;40mP\033[1;36;40mA\033[1;31;40mR\033[1;33;40mT\033[1;32;40mY\033[1;35;40m!\033[0;38;40m\n") elif(answer.lower() == "terrible" or answer.lower == "terrible..."): raw_input("\n\033[0;33;40mWhat happened?\n\033[1;31;40mWhat happened was that \033[0;38;40m") sys.stdout.write("\n\033[1;32;40mI hope it gets better...\033[0;38;40m\n") elif(answer.lower() == "sad" or answer.lower() == "sad..."): sys.stdout.write("\033[1;33;40mPlay a game! \033[3;35;40mhttp://www.games.com\033[0;38;40m\n") elif(answer.lower() == "smart" or answer.lower() == "smart."): sys.stdout.write("\033[0;35;40mΠ = 3.14159265358979323846264338327950288419716...\033[0;38;40m\n") else: print("\033[0;31;40mNot a valid answer, sorry. Case Insensitive!\033[0;38;40m") sys.stdout.flush()
Python code (WIP)
Suggestions on code template:
THING TO TYPE outputs OUTPUT Colors are allowed, posts on uploaded code will come after every 3 comments. This is python code! FlightRay: ISO i hate iso's