Check validity Partition in python
- by fadhil
I have a question, I really don't understand about partition of set. There are 3 definition that we have to know, and I don't know how to implement the definition into python language. In my case, I have a set of RegionsCode which is
set(['Sub-Saharan Africa', 'East Asia & Pacific\n', 'Region\n',
'Middle East & North Africa\n', 'North America\n', 'Latin America & Caribbean\n',
'South Asia\n', 'Sub-Saharan Africa\n', 'Europe & Central Asia\n'])
And the question is:
Determine if RegionCodes is a valid partition of ?????????????????????? n ??????????????????. There are three steps to showing that a partition is valid, all three steps need to be included here. Output the result of each step to the terminal.
I would really appreciate if there is someone helps me..
thank you