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
from time import sleep | |
import random | |
health=10 | |
print(health) | |
damage=random.random() | |
damage=10*damage | |
print(int(damage)) | |
sleep(1) | |
health = health - damage |
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
from time import sleep | |
def awesome(add): | |
pie = add+" is AWESOME!!!!!" #it only makes grammatical sense sometimes | |
print(pie) | |
while True: | |
awesome(input("Type something random.. ")) | |
sleep(1) |
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
""" | |
it works I just don't know how to stop the program from resetting the health back to 10 | |
""" | |
from time import sleep | |
import random |
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
#you are invinceble | |
from time import sleep | |
terminate= ['human', 'terminator', 'human', 'human', 'terminator', 'terminator', 'human', 'terminator', 'spaceship', 'human', 'chopper', 'terminator', 'human', 'terminator', 'terminator', 'terminator', 'chopper' 'teminator', 'human', 'human', 'spaceship'] | |
print(terminate) |
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
from time import sleep #forget this and it will go 'error error error' | |
def add(lick): | |
print("I like that too") #it took me ages to figure this out | |
sleep(1) | |
pie = lick+"inator" | |
print(pie) | |
sleep(1) | |
print("or how about.....") #here is the funtion | |
print(lick+"azoid") |
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
from time import sleep | |
lesso = ['lesson 1', 'lesson 2', 'lesson 3', 'lesson 4', 'lesson 5', 'lesson 6', 'end task'] | |
def lesson1(): | |
print("Here you will learn the basics") | |
sleep(1) | |
print("print will allow the computer to say stuff") | |
sleep(1) | |
print("Here is an example: print(\"Hello\")") |
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
""" | |
my original idea | |
print("Type a number between 1 and 10") | |
print("Ttpe easteregg, I dare you") | |
ph=input("") | |
if ph == "7": #fail | |
print("That is neutral") | |
sleep(1) |
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
""" | |
this is only some of the code. Another one is already saved onto our pi | |
""" | |
import RPi.GPIO as GPIO | |
from time import sleep | |
while True: | |
GPIO.setmode(BCM) | |
GPIO.setup("""*""", GPIO.OUT) |
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
import RPi.GPIO as GPIO | |
import time | |
def auto(): | |
GPIO.setmode(BCM) | |
GPIO.setup(11, GPIO.IN) | |
GPIO.setup(3, GPIO.OUT) | |
while True: | |
i=GPIO.input(11) |
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
""" | |
This program is supposed to be able to allow you to choose if | |
you want to manualy control it or let it control itself. | |
I hope that this program will blow your mind. | |
""" | |
import RPi.GPIO as GPIO | |
from time import sleep |