This repository contains code for Parus Holdings Assessment
The problem given was that given the list of all items and the given target price. I need to find all the possible combinations of dishes. The input for the data would be taken using a json file. To learn more about the requirements click the link given here.
Sample input data
Target price, $15.05mixed fruit,$2.15 french fries,$2.75 side salad,$3.35 hot wings,$3.55 mozzarella sticks,$4.20 sampler plate,$5.80
{
"Target Price":15.05,
"items":[
{
"Name":"Mixed Fruit",
"Price":2.15
},
{
"Name":"french Fries",
"Price":2.75
},
{
"Name":"side salad",
"Price":3.35
},
{
"Name":"Hot Wings",
"Price":3.55
},
{
"Name":"mozzorella sticks",
"Price":4.20
},
{
"Name":"Sampler plate",
"Price":5.80
}
]
}
- Unzip the folder of code (Provided you have downloaded the code in zip format)
- Open Command Prompt and change the directory to the current directory using
cd current_directory
command - Here current_directory means the place where the code is saved
- For Example
cd "F:\Python Projects\Parus Holdings"
- Run the command
python project.py file_name
- The above code can be written in two formats.
- By directly mentioning the file in the same directory to read from. For Example
python project.py input.json
- By directly mentioning the file path to read from For Example
python project.py "F:\Python Projects\Parus Holdings\input.json"
- By directly mentioning the file in the same directory to read from. For Example
- If its getting difficult to understand the steps mentioned above then kindly download the file from the link(https://github.com/hiteshbhavsar/Parus-Holdings-Assessment/blob/main/Steps%20to%20follow%20to%20run%20the%20code.docx)