Closed solomonaboyeji closed 3 months ago
After the initial submission and debugging, I identified the following issues:
For Product.json and User.json:
if check_for_duplicate_email(email) == False: # proceed to collect other info...
ecommerce_data
. ls ecommerce_data
should list users.json
and products.json
Users.json
[
{
"id": 1,
"name": "Solomon",
"email": "solomon@tekinologi.com"
"date_registered": "time and date",
},
{
"id": 2,
"name": "Adeleke",
"email": "adeleke@tekinologi.com"
"date_registered": "time and date"
}
]
Products Json
[
{
"id": 1,
"name": "Nike Sneakers",,
"quantity": 2,
"price": "£30",
"user_id": 1
},
{
"id": 2,
"name": "New Balance Sneakers",
"quantity": 2,
"price": "£20",
"user_id": 2
}
]
There is a need to build an application for a fashion store (your clothing brand). The first baby step we need to take to build a system where the store can mange their users and orders is to build a user management system. Your first task is implement this in python. Adhere to the instructions below:
users.json
file. (1) What is JSON? (2) Reading and Writing JSON to a filejson
file but this time aproducts.json
file.products.json
file.