What is Python?
Python is an interpreted high-level general-purpose programming language. Its design philosophy emphasizes code readability with its use of significant indentation. Its language constructs as well as its object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.
Making a game 2-D game in python has been on my mind for ages. To accomplish this goal, I wanted to make a snake game.
Before getting started I need a basic understanding of the following:
Familiarizing with pygame
Basic understanding of physics
Creating endpoints to GUI to not make the snake pass out the window
Taking values of input (W,A,S,D) for movement
This code (shown below) enables the movement of the snake accordingly based on the input made by the player.
import pygame
import random
pygame.init()
SCREEN_WIDTH, SCREEN_HEIGHT = 700,600
screen = pygame.display.set_mode([SCREEN_WIDTH, SCREEN_HEIGHT])
pygame.display.set_caption("Snake - Nethan Nagendran")
def main():
#variable def
x = 50
y = 50
Swidth = 40
Sheight = 40
vel = 2
#physics
Jumping = True
RGBColors = {
"Bkg" : (193,154,107)
}
running = True
Jump_ = 10
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
keys = pygame.key.get_pressed()
if keys[pygame.K_a] and x > vel:
x -= vel
elif keys[pygame.K_d] and x < SCREEN_WIDTH - Swidth - vel:
x += vel
elif keys[pygame.K_w] and y > vel:
y -= vel
elif keys[pygame.K_s] and y < SCREEN_HEIGHT - Sheight - vel:
y += vel
screen.fill(RGBColors["Bkg"])
pygame.draw.rect(screen, (255,191,0), (x,y,Swidth, Sheight))
pygame.display.update()
pygame.quit()
main()
During my economy course in 12th Grade, we were learning about the introduction to stocks. This further made me motivated to make a data frame that lists the current Crypto Prices.
Current thought process before the project begins:
Research website which displays current Crypto Values to web scrape.
Web Scraping information from the website such as:
Crypto Names
Crypto Price - Interest in market buying
Crypto Market Cap - Multiply the price of each token by the number of circulating coins.
Crypto Volume (24h) - How much in monetary terms - a given cryptocurrency has traded over a period of ?
Circulating Supply - Number of coins or tokens of a specific cryptocurrency that are publicly available to buy or sell.
Thought process while Programming:
Using libraries such as Requests, BeautifulSoup & Pandas
Making lists to add values of Crypto to display in the final Data Frame
Use of For Loop to loop through values desired on the website
import requests
from bs4 import BeautifulSoup
import pandas as pd
classList = []
classPriceList = []
CryptoMarket_Cap = []
CryptoVolume = []
CryptoSupply = []
url = 'https://coinmarketcap.com/'
webHTML_ = requests.get(url)
# response
html_content = webHTML_.text
soup = BeautifulSoup(html_content, 'html.parser')
#web title
title_ = soup.title.string + "\n"
print (title_)
#fetching crypto data chart
for item in soup.find_all("table", class_= "h7vnx2-2 czTsgW cmc-table"):
Title_Class = item.find_all("div", class_=["sc-16r8icm-0 sc-1teo54s-1 dNOTPP"])
for x in Title_Class:
x.find_all("p", class_ = "sc-1eb5slv-0 iworPT")
CryptoClass_ = f' N{x.text}'
classList.append(CryptoClass_)
print("\n")
CryptoPrice_Class = item.find_all("div", class_=["sc-131di3y-0 cLgOOr"])
for i in CryptoPrice_Class:
i.find_all("a", class_ = "cmc-link")
CryptoPrice_ = f' Price : {i.text}'
classPriceList.append(CryptoPrice_)
print("\n")
marketCap_ = item.find_all("span" ,class_=["sc-1ow4cwt-1 ieFnWP"])
for b in marketCap_:
market_ = f' Market Cap : {b.text}'
print (market_)
CryptoMarket_Cap.append(market_)
print("\n")
for c in item.find_all("p", class_=["sc-1eb5slv-0 hykWbK font_weight_500"]):
Volume_ = f' Volume (24h) : {c.text}'
print(Volume_)
CryptoVolume.append(Volume_)
print("\n")
for d in item.find_all("p", class_=["sc-1eb5slv-0 kZlTnE"]):
Circulating_Supply = f' Circulating Supply : {d.text}'
print(Circulating_Supply)
CryptoSupply.append(Circulating_Supply)
table = {
"Name" : classList,
"CryptoPrice" : classPriceList,
"Crypto Market cap ": CryptoMarket_Cap,
"Crypto Volume (24h)" : CryptoVolume,
"Crypto Supply": CryptoSupply
}
df = pd.DataFrame(data = table)
print(df)
The image below displays the data frame created for the crypto on the right side with respect to their parent names.
Flights can be costly. People often spend money on flight travel beyond their budget.
Similarly, cars can be quite expensive to rent
Point of Project?
Scrape data from a website that displays cheap flight tickets.
Scrape data from a website that displays the cheapest car rentals.
Web Scraping information from the website such as:
Use of link to navigate through flights or cars through user input values
Provide the correct information to the values of user-input
Creation of data frame
Thought process while Programming:
Using libraries such as Requests, BeautifulSoup & Pandas
Use of For Loop to loop through values desired on the website
import requests
from bs4 import BeautifulSoup
import pandas as pd
table = {"Travel Options:" : ["Flights", "Cars"]}
df = pd.DataFrame(data = table)
print(df)
print("\n")
travelInput_ = input("Choice of travel? (Flights or Cars?): ")
class TravelInfo:
def __init__(self,type):
self.type = type
def Traveling(self):
flightUrl = f'https://www.kayak.com/{self.type}'
req_flight = requests.get(flightUrl)
html_content = req_flight.text
soup_flight = BeautifulSoup(html_content, 'html.parser')
print("\n")
for items in soup_flight.find_all("div",class_ =["P_Ok-container"]):
print(items.text)
print("\n")
for flightmoreInfo in soup_flight.find_all("li", class_ = ["P_Ok-sublink-item"]):
print(flightmoreInfo.text)
if travelInput_.lower() == "flights":
Travel = TravelInfo("flights")
Travel.Traveling()
elif travelInput_.lower() == "cars":
Travel = TravelInfo("cars")
Travel.Traveling()
New York Flights
Orlando Flights
London Flights
Fort Lauderdale Flights
Boston Flights
India Flights
Japan Flights
Phoenix Flights
Honolulu Flights
Los Angeles Flights
Chicago Flights
Denver Flights
Washington, D.C. Flights
Atlanta Flights
United States Flights
Hawaii Flights
Tampa Flights
Houston Flights
Las Vegas Flights
Miami Flights
San Francisco Flights
Seattle Flights
Paris Flights
Europe Flights
Florida Flights
Dallas Flights
San Diego Flights
Flight Miami - Newark (MIA - EWR)$58+
Flight Fort Lauderdale - Newark (FLL - EWR)$59+
Flight Miami - New York (MIA - LGA)$63+
Flight Dallas - New York (DFW - LGA)$74+
Flight Fort Lauderdale - New York (FLL - LGA)$82+
Flight Houston - New York (HOU - LGA)$82+
Flight Atlanta - Newark (ATL - EWR)$83+
Flight Atlanta - New York (ATL - LGA)$92+
Flight Houston - Newark (HOU - EWR)$116+
Flight Miami - New York (MIA - JFK)$132+
Flight Chicago - Newark (ORD - EWR)$134+
Flight Dallas - Newark (DFW - EWR)$137+
Flight Dallas - New York (DFW - JFK)$138+
Flight Charlotte - Newark (CLT - EWR)$142+
Flight Chicago - New York (ORD - LGA)$143+
Flight Los Angeles - Newark (LAX - EWR)$146+
Flight Chicago - New York (ORD - JFK)$152+
Flight Los Angeles - New York (LAX - LGA)$188+
Flight San Francisco - Newark (SFO - EWR)$190+
Flight Los Angeles - New York (LAX - JFK)$192+
Flight San Francisco - New York (SFO - JFK)$198+
Flight Seattle - New York (SEA - JFK)$198+
Flight San Francisco - New York (SFO - LGA)$216+
Flight Ontario - New York (ONT - JFK)$248+
Flight Atlanta - Orlando (ATL - MCO)$69+
Flight Philadelphia - Orlando (PHL - MCO)$73+
Flight Baltimore - Orlando (BWI - MCO)$76+
Flight Newark - Orlando (EWR - MCO)$79+
Flight Raleigh - Orlando (RDU - MCO)$79+
Flight Dallas - Orlando (DFW - MCO)$82+
Flight Hartford - Orlando (BDL - MCO)$82+
Flight New Windsor - London (SWF - STN)$301+
Flight New York - London (JFK - LGW)$302+
Flight New York - London (JFK - STN)$317+
Flight Boston - London (BOS - LGW)$341+
Flight Boston - London (BOS - LHR)$346+
Flight Newark - London (EWR - LGW)$346+
Flight Newark - London (EWR - LHR)$351+
Flight New York - London (JFK - LHR)$356+
Flight San Francisco - London (SFO - LHR)$356+
Flight Houston - Fort Lauderdale (HOU - FLL)$56+
Flight Atlanta - Fort Lauderdale (ATL - FLL)$59+
Flight Baltimore - Fort Lauderdale (BWI - FLL)$59+
Flight Newark - Fort Lauderdale (EWR - FLL)$59+
Flight Cincinnati - Fort Lauderdale (CVG - FLL)$69+
Flight Cleveland - Fort Lauderdale (CLE - FLL)$71+
Flight New York - Fort Lauderdale (LGA - FLL)$83+
Flight Miami - Boston (MIA - BOS)$83+
Flight Fort Lauderdale - Boston (FLL - BOS)$85+
Flight Orlando - Boston (MCO - BOS)$91+
Flight Philadelphia - Boston (PHL - BOS)$98+
Flight Washington, D.C. - Boston (DCA - BOS)$112+
Flight Baltimore - Boston (BWI - BOS)$118+
Flight Washington, D.C. - Boston (IAD - BOS)$118+
Flight New York - Mumbai (JFK - BOM)$598+
Flight New York - Ahmedabad (JFK - AMD)$603+
Flight New York - Hyderabad (JFK - HYD)$612+
Flight San Francisco - New Delhi (SFO - DEL)$637+
Flight Newark - Mumbai (EWR - BOM)$644+
Flight Chicago - Ahmedabad (ORD - AMD)$647+
Flight New York - New Delhi (JFK - DEL)$666+
Flight Los Angeles - Tokyo (LAX - HND)$161+
Flight Los Angeles - Tokyo (LAX - NRT)$511+
Flight Honolulu - Tokyo (HNL - NRT)$539+
Flight San Francisco - Tokyo (SFO - NRT)$628+
Flight Oakland - Tokyo (OAK - NRT)$635+
Flight Seattle - Tokyo (SEA - NRT)$682+
Flight San Francisco - Tokyo (SFO - HND)$685+
Flight San Francisco - Phoenix (SFO - PHX)$78+
Flight San Diego - Phoenix (SAN - PHX)$80+
Flight Oakland - Phoenix (OAK - PHX)$81+
Flight Salt Lake City - Phoenix (SLC - PHX)$83+
Flight Dallas - Phoenix (DFW - PHX)$93+
Flight Los Angeles - Phoenix (LAX - PHX)$98+
Flight Denver - Phoenix (DEN - PHX)$101+
Flight San Francisco - Honolulu (SFO - HNL)$236+
Flight San Jose - Honolulu (SJC - HNL)$236+
Flight Oakland - Honolulu (OAK - HNL)$237+
Flight Los Angeles - Honolulu (LAX - HNL)$250+
Flight San Diego - Honolulu (SAN - HNL)$255+
Flight Portland - Honolulu (PDX - HNL)$260+
Flight Las Vegas - Honolulu (LAS - HNL)$275+
Flight Oakland - Los Angeles (OAK - LAX)$41+
Flight Denver - Los Angeles (DEN - LAX)$82+
Flight Houston - Los Angeles (HOU - LAX)$82+
Flight San Francisco - Los Angeles (SFO - LAX)$82+
Flight Atlanta - Los Angeles (ATL - LAX)$92+
Flight San Jose - Los Angeles (SJC - LAX)$96+
Flight Fort Lauderdale - Los Angeles (FLL - LAX)$99+
Flight Chicago - Los Angeles (ORD - LAX)$120+
Flight Dallas - Los Angeles (DFW - LAX)$125+
Flight Atlanta - Chicago (ATL - ORD)$44+
Flight Atlanta - Chicago (ATL - MDW)$78+
Flight Fort Lauderdale - Chicago (FLL - ORD)$92+
Flight Miami - Chicago (MIA - ORD)$92+
Flight Dallas - Chicago (DFW - ORD)$97+
Flight Baltimore - Chicago (BWI - ORD)$115+
Flight Newark - Chicago (EWR - ORD)$116+
Flight Houston - Denver (HOU - DEN)$73+
Flight Houston - Denver (IAH - DEN)$73+
Flight Detroit - Denver (DTW - DEN)$83+
Flight Los Angeles - Denver (LAX - DEN)$83+
Flight Burbank - Denver (BUR - DEN)$87+
Flight Fort Lauderdale - Denver (FLL - DEN)$91+
Flight Santa Ana - Denver (SNA - DEN)$96+
Flight Atlanta - Baltimore (ATL - BWI)$48+
Flight Boston - Washington, D.C. (BOS - DCA)$112+
Flight Los Angeles - Baltimore (LAX - BWI)$114+
Flight Chicago - Baltimore (ORD - BWI)$115+
Flight Boston - Baltimore (BOS - BWI)$118+
Flight Boston - Washington, D.C. (BOS - IAD)$118+
Flight Dallas - Baltimore (DFW - BWI)$131+
Flight Minneapolis - Baltimore (MSP - BWI)$136+
Flight Atlanta - Washington, D.C. (ATL - IAD)$158+
Flight Dallas - Washington, D.C. (DFW - DCA)$164+
Flight San Francisco - Washington, D.C. (SFO - DCA)$164+
Flight Atlanta - Washington, D.C. (ATL - DCA)$176+
Flight San Francisco - Baltimore (SFO - BWI)$176+
Flight Minneapolis - Washington, D.C. (MSP - DCA)$184+
Flight Seattle - Washington, D.C. (SEA - DCA)$184+
Flight Chicago - Washington, D.C. (ORD - DCA)$186+
Flight Chicago - Washington, D.C. (ORD - IAD)$190+
Flight Seattle - Baltimore (SEA - BWI)$194+
Flight Los Angeles - Washington, D.C. (LAX - DCA)$222+
Flight Minneapolis - Washington, D.C. (MSP - IAD)$228+
Flight Dallas - Washington, D.C. (DFW - IAD)$253+
Flight Seattle - Washington, D.C. (SEA - IAD)$256+
Flight Los Angeles - Washington, D.C. (LAX - IAD)$279+
Flight San Francisco - Washington, D.C. (SFO - IAD)$319+
Flight Chicago - Atlanta (ORD - ATL)$44+
Flight Baltimore - Atlanta (BWI - ATL)$49+
Flight Miami - Atlanta (MIA - ATL)$54+
Flight Fort Lauderdale - Atlanta (FLL - ATL)$59+
Flight Dallas - Atlanta (DFW - ATL)$69+
Flight Philadelphia - Atlanta (PHL - ATL)$69+
Flight Houston - Atlanta (HOU - ATL)$70+
Flight Newark - Miami (EWR - MIA)$57+
Flight Newark - Fort Lauderdale (EWR - FLL)$59+
Flight Dallas - Las Vegas (DFW - LAS)$61+
Flight New York - Miami (LGA - MIA)$62+
Flight Newark - Orlando (EWR - MCO)$79+
Flight New York - Fort Lauderdale (LGA - FLL)$83+
Flight Newark - Chicago (EWR - ORD)$115+
Flight San Francisco - Hawaii (SFO - USHI)$217+
Flight Los Angeles - Hawaii (LAX - USHI)$226+
Flight Oakland - Hawaii (OAK - USHI)$237+
Flight San Jose - Hawaii (SJC - USHI)$237+
Flight San Diego - Hawaii (SAN - USHI)$252+
Flight Portland - Hawaii (PDX - USHI)$255+
Flight Seattle - Hawaii (SEA - USHI)$255+
Flight Akron - Tampa (CAK - TPA)$78+
Flight Dallas - Tampa (DFW - TPA)$78+
Flight Norfolk - Tampa (ORF - TPA)$78+
Flight Richmond - Tampa (RIC - TPA)$78+
Flight Hartford - Tampa (BDL - TPA)$83+
Flight Baltimore - Tampa (BWI - TPA)$97+
Flight Cleveland - Tampa (CLE - TPA)$97+
Flight Miami - Houston (MIA - IAH)$58+
Flight Fort Lauderdale - Houston (FLL - IAH)$59+
Flight Atlanta - Houston (ATL - IAH)$68+
Flight Denver - Houston (DEN - IAH)$73+
Flight New York - Houston (LGA - IAH)$75+
Flight Baltimore - Houston (BWI - IAH)$82+
Flight Chicago - Houston (ORD - IAH)$83+
Flight Burbank - Las Vegas (BUR - LAS)$35+
Flight Oakland - Las Vegas (OAK - LAS)$35+
Flight Los Angeles - Las Vegas (LAX - LAS)$43+
Flight Houston - Las Vegas (HOU - LAS)$58+
Flight Dallas - Las Vegas (DFW - LAS)$61+
Flight San Francisco - Las Vegas (SFO - LAS)$61+
Flight Seattle - Las Vegas (SEA - LAS)$71+
Flight Houston - Las Vegas (IAH - LAS)$78+
Flight Baltimore - Las Vegas (BWI - LAS)$99+
Flight Fort Lauderdale - Las Vegas (FLL - LAS)$99+
Flight Miami - Las Vegas (MIA - LAS)$99+
Flight Minneapolis - Las Vegas (MSP - LAS)$103+
Flight Chicago - Las Vegas (ORD - LAS)$114+
Flight Newark - Las Vegas (EWR - LAS)$118+
Flight Atlanta - Miami (ATL - MIA)$54+
Flight Houston - Miami (HOU - MIA)$58+
Flight Baltimore - Miami (BWI - MIA)$59+
Flight Newark - Miami (EWR - MIA)$59+
Flight Denver - Miami (DEN - MIA)$71+
Flight New York - Miami (LGA - MIA)$72+
Flight Boston - Miami (BOS - MIA)$82+
Flight Dallas - Miami (DFW - MIA)$82+
Flight Cleveland - Miami (CLE - MIA)$83+
Flight Hartford - Miami (BDL - MIA)$83+
Flight Philadelphia - Miami (PHL - MIA)$83+
Flight Chicago - Miami (ORD - MIA)$92+
Flight New York - Miami (JFK - MIA)$132+
Flight Detroit - Miami (DTW - MIA)$137+
Flight Los Angeles - Miami (LAX - MIA)$138+
Flight Raleigh - Miami (RDU - MIA)$138+
Flight Washington, D.C. - Miami (IAD - MIA)$138+
Flight Charlotte - Miami (CLT - MIA)$140+
Flight San Francisco - Miami (SFO - MIA)$140+
Flight Minneapolis - Miami (MSP - MIA)$147+
Flight Washington, D.C. - Miami (DCA - MIA)$173+
Flight Seattle - Miami (SEA - MIA)$205+
Flight Phoenix - San Francisco (PHX - SFO)$44+
Flight Ontario - San Francisco (ONT - SFO)$67+
Flight Los Angeles - San Francisco (LAX - SFO)$87+
Flight Santa Ana - San Francisco (SNA - SFO)$88+
Flight San Diego - San Francisco (SAN - SFO)$104+
Flight Austin - San Francisco (AUS - SFO)$107+
Flight Denver - San Francisco (DEN - SFO)$112+
Flight Seattle - San Francisco (SEA - SFO)$113+
Flight Dallas - San Francisco (DFW - SFO)$138+
Flight Portland - San Francisco (PDX - SFO)$140+
Flight Baltimore - San Francisco (BWI - SFO)$148+
Flight Houston - San Francisco (HOU - SFO)$149+
Flight Minneapolis - San Francisco (MSP - SFO)$162+
Flight Chicago - San Francisco (MDW - SFO)$164+
Flight Burbank - Seattle (BUR - SEA)$111+
Flight San Francisco - Seattle (SFO - SEA)$113+
Flight San Diego - Seattle (SAN - SEA)$123+
Flight Santa Ana - Seattle (SNA - SEA)$125+
Flight Phoenix - Seattle (PHX - SEA)$126+
Flight Los Angeles - Seattle (LAX - SEA)$129+
Flight Salt Lake City - Seattle (SLC - SEA)$129+
Flight New Windsor - Paris (SWF - CDG)$263+
Flight Baltimore - Paris (BWI - CDG)$300+
Flight Boston - Paris (BOS - CDG)$300+
Orlando Rental Cars
Denver Rental Cars
Boston Rental Cars
Phoenix Rental Cars
San Diego Rental Cars
Brooklyn Rental Cars
Dallas Rental Cars
New York Rental Cars
San Francisco Rental Cars
Chicago Rental Cars
Seattle Rental Cars
Miami Rental Cars
Washington, D.C. Rental Cars
Salt Lake City Rental Cars
Los Angeles Rental Cars
Las Vegas Rental Cars
Fort Lauderdale Rental Cars
Atlanta Rental Cars
Tampa Rental Cars
Houston Rental Cars
Portland Rental Cars
Celebration car rentals
Buena Ventura Lakes car rentals
Oak Ridge car rentals
Lockhart car rentals
Oviedo car rentals
Holden Heights car rentals
Bay Lake car rentals
Goldenrod car rentals
Belle Isle car rentals
Orlovista car rentals
Windermere car rentals
Four Corners car rentals
Union Park car rentals
Williamsburg car rentals
Winter Park car rentals$25+
Kissimmee car rentals$32+
Winter Haven car rentals$38+
Sanford car rentals$40+
Lake Buena Vista car rentals$64+
Maitland car rentals$66+
Lake Mary car rentals$68+
Federal Heights car rentals
Glendale car rentals
Sheridan car rentals
Thornton car rentals$57+
Centennial car rentals$70+
Westminster car rentals$74+
Wheat Ridge car rentals$102+
Chestnut Hill car rentals
Brookline car rentals
Medford car rentals$19+
Norwood car rentals$24+
Newton car rentals$49+
Everett car rentals$63+
Waltham car rentals$79+
Needham car rentals$79+
Chelsea car rentals$86+
Litchfield Park car rentals
Anthem car rentals
Mesa car rentals$23+
Gilbert car rentals$48+
Scottsdale car rentals$50+
Tempe car rentals$50+
Queen Creek car rentals$93+
Del Mar car rentals
La Mesa car rentals$49+
Coronado car rentals$50+
Solana Beach car rentals$56+
Encinitas car rentals$56+
Lemon Grove car rentals$61+
Santee car rentals$62+
Union City car rentals
Queens car rentals$29+
Jersey City car rentals$36+
Bayonne car rentals$63+
Hoboken car rentals$71+
West New York car rentals$77+
Inwood car rentals$81+
Euless car rentals
Farmers Branch car rentals
Irving car rentals$40+
Mesquite car rentals$41+
Grand Prairie car rentals$42+
Grapevine car rentals$42+
Colleyville car rentals$70+
Bronxville car rentals
Carteret car rentals
Union City car rentals
Edgewater car rentals
Elmont car rentals
Yonkers car rentals$47+
Little Ferry car rentals$60+
North Bergen car rentals$61+
Fairview car rentals$64+
Sausalito car rentals
Emeryville car rentals
Millbrae car rentals
Burlingame car rentals$38+
South San Francisco car rentals$52+
San Bruno car rentals$53+
Colma car rentals$64+
Rolling Meadows car rentals
Wilmette car rentals
Harwood Heights car rentals
Oak Park car rentals$52+
Rosemont car rentals$52+
Skokie car rentals$55+
Mount Prospect car rentals$65+
Tukwila car rentals
Lake Forest Park car rentals
Des Moines car rentals
Burien car rentals
Woodinville car rentals
Edmonds car rentals
Mercer Island car rentals
Kirkland car rentals$21+
Auburn car rentals$32+
SeaTac car rentals$32+
Bellevue car rentals$51+
Redmond car rentals$51+
Federal Way car rentals$63+
Kent car rentals$68+
Shoreline car rentals$71+
Renton car rentals$82+
Bothell car rentals$90+
South Miami Heights car rentals
South Miami car rentals
The Hammocks car rentals
Fisher Island car rentals
Hialeah car rentals$36+
Hallandale car rentals$48+
Miami Lakes car rentals$49+
Brookmont car rentals
National Harbor car rentals
Alexandria car rentals$39+
Wheaton car rentals$42+
Silver Spring car rentals$44+
Hyattsville car rentals$53+
Oxon Hill car rentals$64+
Holladay car rentals
Millcreek car rentals
North Salt Lake car rentals
Taylorsville car rentals
South Salt Lake car rentals$41+
West Valley City car rentals$46+
Murray car rentals$65+
Rosemead car rentals
Monterey Park car rentals
Lawndale car rentals
Alhambra car rentals
San Gabriel car rentals
Culver City car rentals
Hermosa Beach car rentals
Temple City car rentals
Duarte car rentals$27+
Beverly Hills car rentals$33+
Santa Clarita car rentals$37+
Pasadena car rentals$39+
Sherman Oaks car rentals$48+
Monrovia car rentals$52+
Sunrise Manor car rentals
Winchester car rentals
Summerlin South car rentals
Spring Valley car rentals
Paradise car rentals
Whitney car rentals
North Las Vegas car rentals$23+
Henderson car rentals$50+
Broadview Park car rentals
Hollywood Beach Gardens car rentals
Coconut Creek car rentals
Lauderdale-by-the-Sea car rentals
Plantation car rentals$24+
Davie car rentals$25+
Pompano Beach car rentals$36+
Hollywood car rentals$38+
Dania Beach car rentals$46+
Lauderdale Lakes car rentals$51+
North Lauderdale car rentals$51+
Wilton Manors car rentals$51+
Margate car rentals$53+
Lauderhill car rentals$68+
Panthersville car rentals
Peachtree Corners car rentals
Brookhaven car rentals
Smyrna car rentals$37+
Riverdale car rentals$40+
Chamblee car rentals$42+
Dunwoody car rentals$43+
Temple Terrace car rentals
Greater Northdale car rentals
Carrollwood car rentals
Egypt Lake-Leto car rentals
Feather Sound car rentals
Oldsmar car rentals$45+
Pinellas Park car rentals$54+
West University Place car rentals
South Houston car rentals
Humble car rentals$26+
Cypress car rentals$64+
Jersey Village car rentals$85+
Seabrook car rentals$85+
Bellaire car rentals$105+
Happy Valley car rentals
Metzger car rentals
Milwaukie car rentals$46+
Tigard car rentals$46+
Tualatin car rentals$61+
Aloha car rentals$62+
Clackamas car rentals$62+
This program allows you to guess random numbers. The computer will think of a random number between 1 and 100 and clients goal is to guess it. After each guess,The computer will provide a clue about whether the correct number is higher or lower.
Process before coding:
Import module random to fetch randomized numbers
Use of classes to work through Inputs
While programming:
Computer generates random numbers 1-100
Ability for the computer to tell if the number is greater or less
Respond to total guesses after completing game
Save user information when user is done playing
Ability to respond best game played
import random
class GuessingGame():
print('This program allows you to guess random numbers. \nI will think of a number between 1 and 100\nand you will try to uess it. \nAfter each guess, I wil give you a clue about whether the correct number is higher or lower.\nI\'m thinking of a number between 1 and 100...')
def __init__(self):
#variables define
self.totalGame = 1
self.totalGuesses = 0
self.Gueses_Game = 0
self.bestGame = 0
self.numberRandomizer = random.randint(1, 100)
print(self.numberRandomizer)
#Testing purposes
self.gamenumber = 0
self.bestGame = 0
self.userInput = int(input('Your guess? '))
def gameMechanics(self):
while self.userInput != self.numberRandomizer:
if self.userInput > self.numberRandomizer:
self.totalGuesses += 1
print('It\'s lower.')
self.userInput = int(input('Your guess? '))
elif self.userInput < self.numberRandomizer:
self.totalGuesses += 1
print('It\'s higher.')
self.userInput = int(input('Your guess? '))
elif self.userInput == self.numberRandomizer:
self.totalGuesses += 1
break
if self.userInput == self.numberRandomizer:
print('You got it right in ', int(self.totalGuesses+1))
#add try except code
def main(self):
while True:
newGame = input('Do you want to play again? (y/n): ')
if newGame == "y":
#If the user want to play again
self.totalGame+= 1
Object2 = GuessingGame()
Object2.gameMechanics()
Object2.main()
elif newGame == 'n':
#If the user don't want to play again
dataStorage = {
'Total Games': (self.totalGame),
'Total Guesses': (self.totalGuesses),
'Guesses/game' : (float(self.totalGuesses/self.totalGame)),
'Best Game': 'Yet to come'
}
print('Overall Results:')
print('Total games = ', self.totalGame)
print('Total Guesses = ', self.totalGuesses)
print('Guessing/game = ', float(self.totalGuesses/self.totalGame))
#DataStorage
print('DataStorage = ', dataStorage)
Object1 = GuessingGame()
Object1.gameMechanics()
Object1.main()
I Designed a GUI application named 'minibox' which I put together to complete all my important tasks similar to app running on my computer. Below here are some videos of what it contains.
I developed a "web search" button below the options menu that directs us to a web-search program that asks for the user's preferred online search. And, because it improves my productivity, I added an option menu to all of my classes that leads to a zoom link when you press the class name.
I developed 'While loop" to help me use auto-clickers or Autotyper-text that types text anytime I specify it to type and text. This works on any field. For example, notes, any web application, etc. (works in any entry field)
This algorithm in python creates an automatic text-file to my computer given the name, and the text input field. With whatever name I put in, it generates the file including the text.
This is a basic login system that takes passwords inputted from the user and has to be proper username and password. Otherwise, it returns error messages.
Since I love typing, I taught why not make a typing bot that reads the text on a website and types it for you? Well, this video will show the bot typing 544wpm on my favorite typing website.