Created
January 17, 2018 10:39
-
-
Save toddmilne13/7a3758895046b6a3e85a41928b9d07f7 to your computer and use it in GitHub Desktop.
rememberingpyhton.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the list and for loop dont work, i just put it there to show i know how to write it