Skip to content

Instantly share code, notes, and snippets.

View JJoyce03's full-sized avatar

James Joyce JJoyce03

View GitHub Profile
@JJoyce03
JJoyce03 / amounts in fridge.py.py
Last active March 6, 2018 12:26
amounts in fridge.py created by JJoyce03 - https://repl.it/@JJoyce03/amounts-in-fridgepy
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():
@JJoyce03
JJoyce03 / amounts in fridge.py.py
Created February 19, 2018 15:32
amounts in fridge.py created by JJoyce03 - https://repl.it/@JJoyce03/amounts-in-fridgepy
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():
@JJoyce03
JJoyce03 / Classes(easy).py
Created February 8, 2018 09:29
This creates lots of actions for an unlimited number of characters.
from time import sleep
class Hippo:
health = 20
hunger = 10
power = 20
happiness = 10
def damage(self):
@JJoyce03
JJoyce03 / Classes.py
Created February 8, 2018 09:06
Classes created by JJoyce03 - https://repl.it/@JJoyce03/Classes
from time import sleep
class Hippo:
health = 20
def damage(self):
self.health=self.health-2
def sayHealth():
@JJoyce03
JJoyce03 / Percent-inator.py
Last active February 5, 2018 13:41
This gives you the percent and grade that you got in your test.
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. ")
@JJoyce03
JJoyce03 / checklist.py
Created January 15, 2018 15:31
checklist created by JJoyce03 - https://repl.it/@JJoyce03/checklist
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:
@JJoyce03
JJoyce03 / checklist.py
Last active January 15, 2018 15:02
hello created by JJoyce03 - https://repl.it/@JJoyce03/hello
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:
@JJoyce03
JJoyce03 / Christmas Revision.py
Created November 27, 2017 15:35
Dis be da revision for da christmas exams.
from time import sleep
import random
def counter():
counter = 0
while counter <5:
print("a")
sleep(1)
counter +=1
@JJoyce03
JJoyce03 / STJLOL Anto's Game
Created November 13, 2017 15:08
A great game created by Adam and James.
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)
@JJoyce03
JJoyce03 / STJLOL listy listerson
Created October 26, 2017 08:32
LISTS!!!!!!!!!!!!!!!!!!!!!!!!!!
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")