Photo by Alfonso Castro on Unsplash
import pygame
import time
pygame.init()
white = (255, 255, 255)
blue = (0, 0, 255)
red = (255, 0, 0)
display_width = 800
display_height = 600
display = pygame.display.set_mode((display_height, display_width))x1 = display_width/2
y1 = display_height/2
snake_block…


Part 1

import pygamepygame.init()display = pygame.display.set_mode((800, 600))pygame.display.update()pygame.quit()quit()



import timename = input("What is your name?")print("Hello, "…

Create a Calculator in Python with User Input

num1 = input("Please input your first number: ")
op = input("Input the operation you would like to use…


Photo by Chris Ried on Unsplash
for i in range(0, 30):
print(i+1)


Photo by Ferenc Almasi on Unsplash


Photo by Ferenc Almasi on Unsplash



Brock Byrd

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store