Compare commits
2 commits
e235cba5d6
...
df27844a36
Author | SHA1 | Date | |
---|---|---|---|
df27844a36 | |||
a152737725 |
3 changed files with 16 additions and 1 deletions
0
cars/__init__.py
Normal file
0
cars/__init__.py
Normal 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
5
cars/main.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import json
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
with open('cars.json') as f:
|
||||||
|
cars = json.load(f)
|
Loading…
Reference in a new issue