South Asian history

Which year saw the end of British rule in India and the creation of independent India and Pakistan?