From 4e0c1db47c8326120c5a725847d15e0b26d9e88e Mon Sep 17 00:00:00 2001 From: "Jasper Dahil (dahilj)" Date: Mon, 30 Oct 2017 16:08:56 +0000 Subject: [PATCH] delete this thing --- greetRecog v1.1 | 68 ------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 greetRecog v1.1 diff --git a/greetRecog v1.1 b/greetRecog v1.1 deleted file mode 100644 index 55d2f06..0000000 --- a/greetRecog v1.1 +++ /dev/null @@ -1,68 +0,0 @@ -#responding from a sentence on an introduction + choosing other (joke, funfact, etc) -import random -from userFunctions import * - -userInput = input("Hello, Human, Can you tell me your name? \n") - -userWords = userInput.split() - -words = ["My","my","name","is","I","i","am","Hello,","hello,","hey,","Hey,","hi,","Hi,", - "Howdy","howdy","sup","Sup","sup,","Sup,"] #Single out the name - -userName = "" -for i in range(len(userWords)): #iterate throught the user's words - foundWord = False #sets True when there's a similar word in the other list - for word in range(len(words)): #iterates and compares the chosen word from the user's list of words to the words list - if userWords[i] == words[word] and foundWord == False: - foundWord = True - if foundWord == False: - userName = userName + userWords[i] + " " - -print("Hello, " + str(userName.title()) + "... Nice to meet you!") - -#picking out a subject -randomStuff = ["Cherophobia is the fear of fun","A flock of crows is called a murder", - "A single cloud can weight more than 1 million pounds", - "A crocodile can't stick it's tongue out","A shrimp's heart is in it's head", - "A pregnant goldfish is called a twit","Rats and horses can't vomit.", - "If you sneeze too hard, you can fracture a rib.",] - -userInput = input("Please, pick a subject: Maths, Physics, Biology, Chemistry or other: \n").lower() - -if userInput == "maths": - print("You have chosen: " + userInput.title()) - print("##############################") - - #Input question here XD -elif userInput == "physics": - print("You have chosen: " + userInput.title()) - print("##############################") - - #Input question here XD - -elif userInput == "biology": - print("You have chosen: " + userInput.title()) - print("##############################") - - #Input question here XD - -elif userInput == "chemistry": - print("You have chosen: " + userInput.title()) - print("##############################") - - #Input question here XD - -elif userInput == "other": - print("You have chosen: " + userInput.title()) - print("##############################") - userInput = input("Want to hear a joke, fun fact or something random? \n") - - if userInput == "Yes" or userInput == "yes": - print(random.choice(randomStuff)) - - -#changes -# - userName -> userName.title() -# - userInput -> userInput.title() to subjects choosen -# - set answer to choosing a subject into lowercase using .lower -# - added more fun facts stuff