This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ππ» YOUR CODE ππ»: | |
| import requests | |
| from bs4 import BeautifulSoup | |
| from urllib.parse import urljoin | |
| base_url = "https://berlinstartupjobs.com" | |
| skills = ["python", "typescript", "javascript", "rust"] | |
| def scrape_page(url): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ππ» YOUR CODE ππ»: | |
| from urllib.parse import urljoin | |
| base_url = "https://berlinstartupjobs.com" | |
| def scrape_page(url): | |
| response = requests.get(url, headers={ | |
| "User-Agent": | |
| "Mozilla/5.0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # BLUEPRINT | DONT EDIT | |
| import requests | |
| movie_ids = [ | |
| 238, 680, 550, 185, 641, 515042, 152532, 120467, 872585, 906126, 840430 | |
| ] | |
| # /BLUEPRINT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| playing = True | |
| while playing == True: | |
| a = int(input("Choose a number:\n")) | |
| b = int(input("Choose another one:\n")) | |
| operation = input( | |
| "Choose an operation:\n Options are: + , - , * or /.\n Write 'exit' to finish.\n" | |
| ) | |
| if operation == '+': | |
| c = a + b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def get_yearly_revenue(monthly_revenue=0): | |
| return monthly_revenue*12 | |
| def get_yearly_expenses(monthly_expenses=0): | |
| return monthly_expenses*12 | |
| def get_tax_amount(profit=0): | |
| if profit > 100000: | |
| return profit*0.25 | |
| else: |