Skip to content

Instantly share code, notes, and snippets.

@toddmilne13
Created January 17, 2018 10:39
Show Gist options
  • Save toddmilne13/7a3758895046b6a3e85a41928b9d07f7 to your computer and use it in GitHub Desktop.
Save toddmilne13/7a3758895046b6a3e85a41928b9d07f7 to your computer and use it in GitHub Desktop.
rememberingpyhton.py
from time import sleep
bag = ["yuppa", "giggle", "ha", "lol"]
for item in bag:
if item == "yuppa":
print("Hey I found a yuppa!!!!!!")
def namegame(): #name game function
while True:
name = input("Try guess my name, bet you wont do it fam")
if name == "todd":
print("Forgot a cAPITAL LETTER G, fix up")
break
elif name == "Todd":
print("Ay my g you got it")
break
else:
print("Wrong g try again, fix up")
break
def agegame(): #age game function
while True:
name = input("Try guess my age, bet you wont do it fam")
if name == "14":
print("you guessede wrong, fix up")
break
elif name == "15":
print("Ay my g you got it")
break
else:
print("Wrong g try again, fix up")
break
print("Yewooooooowowwwe, what up my g")
sleep(2)
choice = input("Do you wwnt to gues my age or name innih...") #makes you choose what game you wan to play
if choice == "age":
agegame()
elif choice == "name":
namegame()
else:
print("Type age or name fam")
@toddmilne13
Copy link
Author

the list and for loop dont work, i just put it there to show i know how to write it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment