Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def AI():
- names = open("\\ph-fss1\Students\S39055\Desktop\names.txt","w")
- name = raw_input("Hello and welcome to the Creative, Orginal, Reactive, A.I, Cora. What is your name? ")
- file.read(names)
- if name in names:
- print "Welcome back " + name
- if name not in names:
- print "You are a new user would you like to me to remember your name?"
- name_yes = raw_input("Yes/No: ").lower()
- if name_yes == "yes":
- file.wright(name)
- file.close()
Add Comment
Please, Sign In to add comment