Skip to content

Instantly share code, notes, and snippets.

View LuuOW's full-sized avatar
🐋
Whale hello there

Lucas Kempe LuuOW

🐋
Whale hello there
View GitHub Profile
@LuuOW
LuuOW / kt
Last active April 23, 2023 00:41
variable_medium
var name = "ohwonder"
var location = "nowhere"
@LuuOW
LuuOW / py
Last active August 3, 2022 23:42
Calculate Price
import json
def calculate(filename):
with open(filename) as f:
data = json.load(f)
for i in data:
data[i] = data[i]/300 * 0.6 # <- that is the percentage of actual price you want to sell for.
return data
print(calculate('prices.json')) # <- this is the name of the file you want to use.