Skip to content

Instantly share code, notes, and snippets.

View Lucy1315's full-sized avatar

Lucy1315

  • Joined Sep 16, 2025
View GitHub Profile
import requests
movie_ids = [
238, 680, 550, 185, 641, 515042, 152532, 120467, 872585, 906126, 840430
]
for movie_id in movie_ids:
url = f"https://nomad-movies.nomadcoders.workers.dev/movies/{movie_id}"
response = requests.get(url)
data = response.json()
from random import randint
while True:
num1 = int(input("choose a number: "))
num2 = int(input("choose another one: "))
operation = input("choose an operation:\noptions are : +, -, * or /.\nwrite 'exit' to finish.\n")
if operation == "exit":
print("Game finished.")
break
def get_yearly_revenue(monthly_revenue):
return monthly_revenue * 12
def get_yearly_expenses(monthly_expenses):
return monthly_expenses * 12
def get_tax_amount(profit):
if profit > 100000:
tax_rate = 0.25
else: