Last active
January 17, 2018 10:35
-
-
Save 15nmcgoldrick/44a807c443ef39771397f37fe985e042 to your computer and use it in GitHub Desktop.
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
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