Skip to content

Instantly share code, notes, and snippets.

View SmashedFrenzy16's full-sized avatar
:atom:
Working towards my next project!

SmashedFrenzy16 SmashedFrenzy16

:atom:
Working towards my next project!
View GitHub Profile
@SmashedFrenzy16
SmashedFrenzy16 / russian-flag.py
Last active April 3, 2022 17:02
A Russian Flag that I made in Python!
import turtle
s = turtle.Screen()
t = turtle.Turtle()
s.title("Russian Flag")
s.setup(width=800, height=600)
# Title on the window
pen = turtle.Turtle()
@SmashedFrenzy16
SmashedFrenzy16 / basic-sample-webpage.html
Created December 22, 2021 14:00
Basic Sample Webpage
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="X-UA-Compatible" content="IE=11">
<meta http-equiv="X-UA-Compatible" content="IE=10">
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta http-equiv="X-UA-Compatible" content="IE=8">
print("What's on you mind today?")
response = input("Enter your response: ")
words_split = response.split()
word_count = len(words_split)
print("Wow, you just answered me in {}".format((word_count)),"words!")
name = input("Enter your name: ")
dob = input("Enter your Date of Birth: ")
address = input("Enter your address: ")
pg = input("Enter your Personal Goals: ")
print("Name: {}".format(name))
@SmashedFrenzy16
SmashedFrenzy16 / fahrenheit_to_celcius.py
Created July 8, 2021 20:30
Fahrenheit to Celcius temperatures
lower = 0
upper = 300
step = 20
fahr = lower
while(fahr <= upper):
celcius = (5.0/9.0) * (fahr-32.0)
print(fahr, celcius)
fahr = fahr + step
@SmashedFrenzy16
SmashedFrenzy16 / snake.py
Created June 26, 2021 17:13
A classic snake game!
#smashedfrenzy16's snake game
import pygame
import time
import random
pygame.init()
white = (255, 255, 255)
yellow = (255, 255, 102)
black = (0, 0, 0)
@SmashedFrenzy16
SmashedFrenzy16 / adventure_game.py
Created June 26, 2021 17:12
A cave adventure game!
import time
import sys
name = input("Enter your name: ")
print("Hello " + name + ", welcome to your adventure in the cave.")
time.sleep(2)
start = input("Do you want to start the game? (y/n): ")
@SmashedFrenzy16
SmashedFrenzy16 / story-generator.py
Last active May 8, 2021 09:38
A Random Story Generator!
loop = 1
while (loop < 10):
# All the questions that the program asks the user
noun = input("Choose your noun: ")
p_noun = input("Choose your plural noun: ")
noun2 = input("Choose your noun: ")
place = input("Name your place: ")
adjective = input("Choose your adjective (Describing word): ")
@SmashedFrenzy16
SmashedFrenzy16 / pytoolsuite.py
Created May 8, 2021 08:45
PytoolSuite Python Module - it does a lot of very useful things!
class Phone:
def __init__(self, hardware, cover):
self.hardware = hardware
self.cover = cover
def createPythonDoc():
PythonDoc = open("doc.py", "w")
PythonDoc.write("")