Question: code in c Or c++ Or Java Or python Marks: 10 Negative Marks :0 Single File Programming Question South India is divided into 4 big

code in c Or c++ Or Java Or python

Marks: 10 Negative Marks :0 Single File Programming Question South India is

divided into 4 big kingdoms and ruled by great kings chola,chera,pallava,pandiya. Due

to recent war, people of those kingdoms were separated in various places

Marks: 10 Negative Marks :0 Single File Programming Question South India is divided into 4 big kingdoms and ruled by great kings chola,chera,pallava,pandiya. Due to recent war, people of those kingdoms were separated in various places but they have x and y co-ordinates as identity of their current location. Note: 1. North east is ruled by chola. 2. North west is ruled by chera. 3. South west is ruled by pallava. 4. South east is ruled by pandya. 5. people who are not belongs to any of the kingdom will be segregated as renounce. Using their x and y co-ordinates seggregate people with repect to kingdoms.

Step by Step Solution

3.53 Rating (163 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Python Code def segregatepeoplepeople Initialize empty lists for each kingdom chola chera pallava pa... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!