Oliver Hawthorne
New Coder
Python:
#This is a program full of features I know
import time #The time module stops lines of code for however long you wan't and then carries out them later
time.sleep(7)#The code will stop for 7 seconds
print("HI")
time.sleep(0.7)
print("Hi")
#Below is a simple calculation which is like a Amazon checkout with fixed numbers
quantity = 12
unit_price = 12.78
total_price = quantity * unit_price # here I did quantity X unit_price
time.sleep(2) # I added a delay to make it seem like it is loading
print(total_price)#This show your total
import turtle
drawer =turtle.Turtle()
drawer.forward(100)
drawer.right(90)# moves right
drawer.forward(100)
drawer.left(90)
drawer.forward(100)
drawer.right(90)
drawer.forward(100)
drawer.left(90)
#I have created stairs
# I will make something along the lines of message applications
print("Joe:Hi")
time.sleep(1)
print("Kyle:Hi how are you")
time.sleep(1)
print("Joe:Good what about you?")
time.sleep(1)
print("Kyle:I'm fine :)")
# I can use the same code from the checkout to put in a download page
storage_needed = 2.6
storage_avalible = 1123.78
if storage_avalible < 2.6:
print("You do not have enough storage for this application")
#With some of the code from the download page also is used for a positive and negative number
num = 123
if num <0:
print("This is a negative number")
else:
print("This is a positive number")
#This is a login part of a site or application
user_name = "Oli"
pass_word = "1c4v3ed" #Not my real password
time.sleep(0.9)
print("Please log in")
time.sleep(1)
print(user_name,pass_word)
time.sleep(1)
print("Welcome Oliver Hawthorne")
notifi_cations = 12
if notifi_cations >10:
print("You have a lot of notifications would you like me to delete them?")