Question: who was prime minister of britain when india got independence
Answer: The legislation was formulated by the government of Prime Minister Clement Attlee and the Governor General of India Lord Mountbatten , after representatives of the Indian National Congress , the Muslim League , and the Sikh community came to an agreement with the Viceroy of India , Lord Mountbatten of Burma , on what has come to be known as the 3 June Plan or Mountbatten Plan .