-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
31 lines (25 loc) · 701 Bytes
/
test.py
File metadata and controls
31 lines (25 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import json
import os
#id = 1
#nome = "Adept's Rune"
#prezzo_netto = 65
#quantita = 5000
#tasse = 5
#guadagno = 325000
#
#print(f"{nome}: {quantita} unità a {prezzo_netto} ciascuna -> Guadagno totale: {guadagno} (Tasse: {tasse})")
# runa t4: 5000 unità a 56.00 ciascuna → Guadagno totale: 280000.00 (Tasse: 4.00)
#lista = ({
# "nome_cane" : "Ginji",
# "cane" : "Akita Inu",
# "peso": 40,
# "età": 3
#})
#f = open("Output.txt", "a")
#print(f"Il cane {lista["nome_cane"]} di razza {lista["cane"]}, ha {lista['età']} e pesa {lista['peso']} kg", file=f)
#f.close()
#i = 1
#print(f"filename {i:03}")
with open ("bag_data.json", "r") as f:
data = json.load(f)
print(type(data))