Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Google Scraper/googlescraper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from bs4 import BeautifulSoup
import requests

response = requests.get("http://www.google.com")
soup = BeautifulSoup(response.text, "html.parser")

links = soup.find_all('a')

for link in links:
print(link.get_text())
15 changes: 15 additions & 0 deletions Tip Calculator/tipcalc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name = input("What's your name? ")

print(name)

total = float(input("What is your bill sub-total?").replace('$',''))

print(total)

tip_15 = total * 0.15
tip_18 = total * 0.18
tip_20 = total * 0.20

print(f"15% is ${tip_15:.2f}")
print(f"18% is ${tip_18:.2f}")
print(f"20% is ${tip_20:.2f}")