1
1
Fork 0

Compare commits

...

2 commits

Author SHA1 Message Date
df27844a36
load the json file
Some checks failed
Lint Code / Ruff (push) Successful in 7s
Lint Code / MyPy (push) Failing after 10s
Lint Code / Pylint (push) Failing after 10s
2024-06-06 20:18:01 -04:00
a152737725
expanded cars.json 2024-06-06 20:17:54 -04:00
3 changed files with 16 additions and 1 deletions

0
cars/__init__.py Normal file
View file

View file

@ -1,8 +1,18 @@
{ {
"Tahoe" : "Chevrolet", "Tahoe" : "Chevrolet",
"Mustang" : "Ford",
"Blazer" : "Chevrolet",
"NSX" : "Nissan", "NSX" : "Nissan",
"Fusion" : "Ford",
"Model S" : "Tesla",
"Civic" : "Honda", "Civic" : "Honda",
"F150" : "Ford", "F150" : "Ford",
"Huracan": "Lamborghini",
"Volt": "Chevrolet",
"Silverado": "Chevrolet",
"CX-5" : "Mazda", "CX-5" : "Mazda",
"Accord": "Honda",
"Camaro": "Chevrolet",
"Focus" : "Ford",
"Aventador" : "Lamborghini" "Aventador" : "Lamborghini"
} }

5
cars/main.py Normal file
View file

@ -0,0 +1,5 @@
import json
if __name__ == '__main__':
with open('cars.json') as f:
cars = json.load(f)