Created
January 17, 2018 10:36
-
-
Save 15amccann/48d9a73d60366df2becacf787ba953cf 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
print("anything") #this prints it out | |
from time import sleep #this makes the programme pause | |
sleep(24) | |
my dog = input("daisy is my dog") #this is an input | |
while True: #while loop | |
print("doggos") | |
print("aminat") | |
food=chicken dippers #if, elif and else | |
if food == "pizza": | |
print("noo") | |
elif food == "pasta": | |
print("ew no") | |
else: | |
print("nandos") | |
sleep(1) | |
print("yum") | |
def function (): #function | |
print("the school is closed") | |
print("due to snow") | |
colors = ['red', 'purple', 'orange'] #list | |
print[0] #red | |
print[2] #purple | |
print[len [colors] ##3 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment