Skip to content

Instantly share code, notes, and snippets.

@15nmcgoldrick
Last active January 17, 2018 10:35
Show Gist options
  • Save 15nmcgoldrick/44a807c443ef39771397f37fe985e042 to your computer and use it in GitHub Desktop.
Save 15nmcgoldrick/44a807c443ef39771397f37fe985e042 to your computer and use it in GitHub Desktop.
while True: #keeps the code running on a loop
from time import sleep
print("whats up pal") #print statement yurt
sleep(10) #code stops for ten seconds
name = input("what is your name") #asks the user a question
def srt()
print("whats up pal v2")
srt() #prints whats up pal v2
list = ['pop', 'rock', 'punk'] #list
if 'rock' in list:
print 'hell yeah'
name = haha #if elif else
if name == “lol”:
print(“no!”)
elif name == “rofl”:
print(“no!”)
elif name == “herhahahah”:
print(“no!”)
elif name == “teehee”:
print(“no”)
else:
print(“go away")
#my code teehee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment