0

Urgent help needed in python

Im developing a pythonprogram that prints requirements for starting differnt businesses as we all know businesses are of two types either large scale or small scale so each business type(either small scale or large scale) is gonna have its different requirements so i want to have the user first of all input the business he wants to start, followed by the type (small scale or large scale) before the program now prints the requirements for the inputted business type. i dont knw how to organize into dictionar

10th Feb 2017, 6:44 PM
Prince Kelvin
Prince Kelvin - avatar
4 odpowiedzi
+ 3
data = {"tech" : {"small" : "all requirements", "big" : "requirements"}, "shop": {"small" : "requirements shop small", "big" : "requirements"}} print(data["shop"]["small"]) # >>"requirements shop small" Try something like that.
10th Feb 2017, 8:18 PM
Cosme
Cosme - avatar
10th Feb 2017, 8:56 PM
Cosme
Cosme - avatar
0
returning a syntax error pls do it in the coding ground
10th Feb 2017, 8:27 PM
Prince Kelvin
Prince Kelvin - avatar
0
thanks cosme
18th Feb 2017, 3:10 PM
Prince Kelvin
Prince Kelvin - avatar