-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathISC_CS_Starter_2025.py
More file actions
202 lines (201 loc) · 13.3 KB
/
ISC_CS_Starter_2025.py
File metadata and controls
202 lines (201 loc) · 13.3 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
'''Starter code for ISC Computer Science Lab 2025
- Given a list of comma separated ingredients by the user, the program outputs potential recipes the user can cook with
- The recipes are predefined in a python dictionary
- Keys: "ingredients", "cleaned ingredients", "cuisine", "instructions"
- These recipes were found from a public API TheMealDB
'''
# Sample dictionary of recipes
recipes = { 'Chicken Handi': {
'ingredients': [
'1.2 kg Chicken', '5 thinly sliced Onion', '2 finely chopped Tomatoes',
'8 cloves chopped Garlic', '1 tbsp Ginger paste', '¼ cup Vegetable oil',
'2 tsp Cumin seeds', '3 tsp Coriander seeds', '1 tsp Turmeric powder',
'1 tsp Chilli powder', '2 Green chilli', '1 cup Yogurt', '¾ cup Cream',
'3 tsp Dried fenugreek', '1 tsp Garam masala', 'To taste Salt'
],
'cleaned_ingredients': [
'chicken', 'onion', 'finely chopped tomatoes', 'cloves chopped garlic',
'ginger paste', 'vegetable oil', 'cumin seeds', 'coriander seeds',
'turmeric powder', 'chilli powder', 'green chilli', 'yogurt', 'cream',
'dried fenugreek', 'garam masala', 'salt'
],
'cuisine': 'Indian',
'instructions': (
"Take a large pot or wok, big enough to cook all the chicken, and heat the oil in it. "
"Once the oil is hot, add sliced onion and fry them until deep golden brown. Then take "
"them out on a plate and set aside.\nTo the same pot, add the chopped garlic and sauté "
"for a minute. Then add the chopped tomatoes and cook until tomatoes turn soft. This "
"would take about 5 minutes.\nThen return the fried onion to the pot and stir. Add "
"ginger paste and sauté well.\nNow add the cumin seeds, half of the coriander seeds and "
"chopped green chillies. Give them a quick stir.\nNext goes in the spices – turmeric "
"powder and red chilli powder. Sauté the spices well for a couple of minutes.\nAdd the "
"chicken pieces to the wok, season it with salt to taste and cook the chicken covered "
"on medium-low heat until the chicken is almost cooked through. This would take about "
"15 minutes.\nWhen the oil separates from the spices, add the beaten yogurt keeping the "
"heat on the lowest so that the yogurt doesn’t split. Sprinkle the remaining coriander "
"seeds and add half of the dried fenugreek leaves. Mix well.\nFinally add the cream and "
"give a final mix to combine everything well.\nSprinkle the remaining kasuri methi and "
"garam masala and serve the chicken handi hot with naan or rotis. Enjoy!"
)
},
'Chicken Congee': {
'ingredients': [
'8 oz Chicken', 'pinch Salt', 'pinch Pepper', '1 tsp Ginger Cordial',
'1 tsp Ginger', '1 tbs Spring Onions', '1/2 cup Rice', '8 cups Water', '2 oz Coriander'
],
'cleaned_ingredients': [
'chicken', 'salt', 'pepper', 'ginger cordial', 'ginger', 'spring onions',
'rice', 'water', 'coriander'
],
'cuisine': 'Chinese',
'instructions': (
"STEP 1 - MARINATING THE CHICKEN\nIn a bowl, add chicken, salt, white pepper, ginger juice "
"and then mix it together well.\nSet the chicken aside.\nSTEP 2 - RINSE THE WHITE RICE\n"
"Rinse the rice in a metal bowl or pot a couple times and then drain the water.\nSTEP 3 - "
"BOILING THE WHITE RICE\nAdd 8 cups of water and set the stove on high heat until boiling. "
"Once the rice porridge starts to boil, set the stove on low heat and stir every 8-10 minutes "
"for around 20-25 minutes.\nAdd the marinated chicken to the rice porridge and leave on low "
"heat for another 10 minutes.\nAdd green onions, sliced ginger, a pinch of salt, a pinch of "
"white pepper, and stir for 10 seconds.\nServe the rice porridge in a bowl.\nOptional: add "
"coriander on top."
)
},
'Tonkatsu pork': {
'ingredients': [
'4 Pork Chops', '100g Flour', '2 Beaten Eggs', '100g Breadcrumbs', 'Fry Vegetable Oil',
'2 tbs Tomato Ketchup', '2 tbs Worcestershire Sauce', '1 tbs Oyster Sauce', '2 tblsp Caster Sugar'
],
'cleaned_ingredients': [
'pork chops', 'flour', 'beaten eggs', 'breadcrumbs', 'fry vegetable oil',
'tomato ketchup', 'worcestershire sauce', 'oyster sauce', 'caster sugar'
],
'cuisine': 'Japanese',
'instructions': (
"STEP 1\nRemove the large piece of fat on the edge of each pork loin, then bash each loin "
"between two pieces of baking parchment until around 1cm thick. Reshape the meat if needed.\n\n"
"STEP 2\nPut the flour, eggs, and panko breadcrumbs into separate wide-rimmed bowls. Season "
"the meat, then dip first in flour, then eggs, then breadcrumbs.\n\nSTEP 3\nIn a large frying "
"pan, add oil to come 2cm up the side of the pan. Heat oil to 180°C. Fry pork chops for 1 min "
"30 secs on each side, then rest on a wire rack for 5 mins. Repeat for remaining chops.\n\n"
"STEP 4\nMake the sauce by whisking ingredients together, adding water if thick. Slice and serve."
)
},
'Pork Cassoulet': {
'ingredients': [
'4 tbsp Goose Fat', '350g Pork', '1 large Onion', '10 Garlic',
'1 thinly sliced Carrots', '1 tsp Fennel Seeds', '2 tblsp Red Wine Vinegar',
'600ml Vegetable Stock', '1 tblsp Tomato Puree', '2 sticks Rosemary',
'Handful Parsley', '400g Haricot Beans', '2 tblsp Breadcrumbs',
'drizzle Oil', 'to serve Bread', 'to serve Broccoli'
],
'cleaned_ingredients': [
'goose fat', 'pork', 'onion', 'garlic', 'carrots', 'fennel seeds',
'red wine vinegar', 'vegetable stock', 'tomato puree', 'rosemary',
'parsley', 'haricot beans', 'breadcrumbs', 'oil', 'bread', 'broccoli'
],
'cuisine': 'French',
'instructions': (
"Heat oven to 140C/120C fan/gas 1. Put a large ovenproof pan (with a tight-fitting lid) "
"on a high heat. Add your fat and diced meat, cook for a few mins to seal the edges, giving it "
"a quick stir to cook evenly. Reduce the heat to low, add the sliced onion, whole garlic cloves, "
"carrot and fennel seeds, and cook gently to soften the veg for a few mins.\r\n"
"Pour over the red wine vinegar, scraping any meaty bits off the bottom of the pan. Add the stock, "
"tomato purée, and half the rosemary and parsley. Bring to the boil and simmer for 10 mins, then "
"season, cover with a lid and put into the oven for 2 hrs, removing the lid for the final hour of "
"cooking. Stir occasionally and add the beans with 30 mins to go.\r\n"
"Remove the pan from the oven and heat the grill. Scatter the top with the remaining herbs and "
"breadcrumbs, drizzle a little oil over the top, and return to the oven for 5-10 mins, until the "
"breadcrumbs are golden. Serve with crusty bread and green veg."
)
},
'Beef Asado': {
'ingredients': [
'1.5kg Beef', '1 Beef Stock Concentrate', '8 ounces Tomato Puree', '3 cups Water',
'6 tablespoons Soy Sauce', '1 tbs White Wine Vinegar', '2 tbs Pepper', '4 Bay Leaf',
'1/2 Lemon', '2 tbs Tomato Sauce', '3 tbs Butter', '1/2 cup Olive Oil', '1 chopped Onion',
'4 cloves Garlic'
],
'cleaned_ingredients': [
'beef', 'beef stock concentrate', 'ounces tomato puree', 'water', 'soy sauce',
'white wine vinegar', 'pepper', 'bay leaf', 'lemon', 'tomato sauce', 'butter',
'olive oil', 'onion', 'garlic'
],
'cuisine': 'Filipino',
'instructions': (
"0. Combine beef, crushed peppercorn, soy sauce, vinegar, dried bay leaves, lemon, and tomato sauce. "
"Mix well. Marinate beef for at least 30 minutes.\r\n"
"1. Put the marinated beef in a cooking pot along with remaining marinade. Add water. Let boil.\r\n"
"2. Add Knorr Beef Cube. Stir. Cover the pot and cook for 40 minutes in low heat.\r\n"
"3. Turn the beef over. Add tomato paste. Continue cooking until beef tenderizes. Set aside.\r\n"
"4. Heat oil in a pan. Fry the potato until it browns. Turn over and continue frying the opposite side. "
"Remove from the pan and place on a clean plate. Do the same with the carrots.\r\n"
"5. Save 3 tablespoons of cooking oil from the pan where the potato was fried. Saute onion and garlic until "
"onion softens.\r\n"
"6. Pour-in the sauce from the beef stew. Let boil. Add the beef. Cook for 2 minutes.\r\n"
"7. Add butter and let it melt. Continue cooking until the sauce reduces to half."
)
},
'Beef Lo Mein': {
'ingredients': [
'1/2 lb Beef', 'pinch Salt', 'pinch Pepper', '2 tsp Sesame Seed Oil', '1/2 Egg', '3 tbs Starch',
'5 tbs Oil', '1/4 lb Noodles', '1/2 cup Onion', '1 tsp Minced Garlic', '1 tsp Ginger',
'1 cup Bean Sprouts', '1 cup Mushrooms', '1 cup Water', '1 tbs Oyster Sauce', '1 tsp Sugar',
'1 tsp Soy Sauce'
],
'cleaned_ingredients': [
'beef', 'salt', 'pepper', 'sesame seed oil', 'egg', 'starch', 'oil', 'noodles', 'onion',
'garlic', 'ginger', 'bean sprouts', 'mushrooms', 'water', 'oyster sauce', 'sugar', 'soy sauce'
],
'cuisine': 'Chinese',
'instructions': (
"STEP 1 - MARINATING THE BEEF\r\nIn a bowl, add the beef, salt, 1 pinch white pepper, 1 Teaspoon sesame seed oil, "
"1/2 egg, corn starch,1 Tablespoon of oil and mix together.\r\n"
"STEP 2 - BOILING THE NOODLES\r\nIn a 6 qt pot add your noodles to boiling water until the noodles are submerged "
"and boil on high heat for 10 seconds. After your noodles is done boiling strain and cool with cold water.\r\n"
"STEP 3 - STIR FRY\r\nAdd 2 Tablespoons of oil, beef and cook on high heat until beef is medium cooked.\r\n"
"Set the cooked beef aside\r\nIn a wok add 2 Tablespoon of oil, onions, minced garlic, minced ginger, bean sprouts, "
"mushrooms, peapods and 1.5 cups of water or until the vegetables are submerged in water.\r\n"
"Add the noodles to wok\r\nTo make the sauce, add oyster sauce, 1 pinch white pepper, 1 teaspoon sesame seed oil, "
"sugar, and 1 Teaspoon of soy sauce.\r\nNext add the beef to wok and stir-fry"
)
},
'Salmon Prawn Risotto': {
'ingredients': [
'50g/2oz butter', '1 finely chopped onion', '150g rice', '125ml white wine', '1 litre hot vegetable stock',
'The juice and zest of one lemon', '240g large King Prawns', '150g salmon', '100g tips blanched briefly in boiling water asparagus',
'ground black pepper', '50g shavings Parmesan'
],
'cleaned_ingredients': [
'butter', 'onion', 'rice', 'white wine', 'vegetable stock', 'lemon',
'king prawns', 'salmon', 'asparagus', 'ground black pepper', 'parmesan'
],
'cuisine': 'Italian',
'instructions': (
"Melt the butter in a thick-based pan and gently cook the onion without colour until it is soft.\r\n"
"Add the rice and stir to coat all the grains in the butter\r\n"
"Add the wine and cook gently stirring until it is absorbed\r\n"
"Gradually add the hot stock, stirring until each addition is absorbed. Keep stirring until the rice is tender\r\n"
"Season with the lemon juice and zest, and pepper to taste. (there will probably be sufficient saltiness from the salmon to not need to add salt) "
"Stir gently to heat through\r\n"
"Serve scattered with the Parmesan and seasonal vegetables.\r\n"
"Grill the salmon and gently place onto the risotto with the prawns and asparagus"
)
},
'Salmon Avocado Salad': {
'ingredients': [
'400g Salmon', '3 Avocado', '1 Cucumber', '400g Spinach', '4 tbs Mint',
'zest and juice of 1 Lime', '2 tsp Honey', '3 tbs Olive Oil'
],
'cleaned_ingredients': [
'salmon', 'avocado', 'cucumber', 'spinach', 'mint', 'lime', 'honey', 'olive oil'
],
'cuisine': 'British',
'instructions': (
"Season the salmon, then rub with oil. Mix the dressing ingredients together. Halve, stone, peel and slice the avocados. "
"Halve and quarter the cucumber lengthways, then cut into slices. Divide salad, avocado and cucumber between four plates, "
"then drizzle with half the dressing.\r\n\r\n"
"Heat a griddle pan to medium-high heat. Cook the salmon for 5 minutes, turning halfway. After cooking, add the salmon to the plates and drizzle with the remaining dressing."
)
}
}
### Your Solution Starts Here ###