This file contains hidden or 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 | |
| import random | |
| list1=[] | |
| objects=["gun", "table", "chair", "slav", "phone", "ice cream", "TV", "book", "couch", "sofa", "spoon", "computer", "bomb", "bread", "sandal", "",] | |
| def ham(): | |
| print("1 pack of ham is 150 calories. ") | |
| def milk(): |
This file contains hidden or 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 | |
| import random | |
| list1=[] | |
| objects=["gun", "table", "chair", "slav", "phone", "ice cream", "TV", "book", "couch", "sofa", "spoon", "computer", "bomb", "bread", "sandal", "",] | |
| def ham(): | |
| print("1 pack of ham is 150 calories. ") | |
| def milk(): |
This file contains hidden or 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 | |
| class Hippo: | |
| health = 20 | |
| hunger = 10 | |
| power = 20 | |
| happiness = 10 | |
| def damage(self): |
This file contains hidden or 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 | |
| class Hippo: | |
| health = 20 | |
| def damage(self): | |
| self.health=self.health-2 | |
| def sayHealth(): |
This file contains hidden or 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 | |
| import random | |
| import webbrowser | |
| print("Please follow my instructions and I will tell you what percentage you got in your exam. ") | |
| sleep(2) | |
| while True: | |
| print("Please enter a number between 1 and 1000. ") |
This file contains hidden or 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 #this imports the module 'sleep' | |
| #welcome to my program, bro. | |
| #I can do this: + | |
| print("hello") #this outputs the script to the screen | |
| #I can also do this: | |
| sleep(1) #this inserts a pause | |
| #look at this: |
This file contains hidden or 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 #this imports the module 'sleep' | |
| #welcome to my program, bro. | |
| #I can do this: | |
| print("hello") #this outputs the script to the screen | |
| #I can also do this: | |
| sleep(1) #this inserts a pause | |
| #I can perform magic too: |
This file contains hidden or 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 | |
| import random | |
| def counter(): | |
| counter = 0 | |
| while counter <5: | |
| print("a") | |
| sleep(1) | |
| counter +=1 | |
This file contains hidden or 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
| sleep(5) | |
| print("'Hey. I am Baymax. I have been ordered to kill you. With a fart gun. BANANA!!! '") | |
| sleep(3.5) | |
| print("You have a fanny pack filled with useful items: " ) | |
| sleep(1) | |
| print(bba) | |
| print("1 = Eat the can of beans. ") | |
| sleep(2) |
This file contains hidden or 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 | |
| poop=["coding", "german", ";plo.ki,jmngvbfrftg", "jmncv67a",] | |
| print(poop) | |
| sleep(1) | |
| del poop[1] | |
| print(poop) | |
| sleep(1) | |
| poop.append("NUGGETS") |
NewerOlder