Check validity Partition in python

Posted by fadhil on Programmers See other posts from Programmers or by fadhil
Published on 2013-10-29T04:36:44Z Indexed on 2013/10/29 10:18 UTC
Read the original article Hit count: 199

Filed under:

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

© Programmers or respective owner

Related posts about python