Still, violence has been the answer in many (most?) political revolutions, including the American revolution and separation from Britain.
TL;DW Gandhi knew that to resist the British, they would need a critical mass of people resisting (armed or not). Armed resistance against a superior force is futile. His whole idea of Satyagraha was intentionally self-sacrificial for the nonviolent protestors who would die, because he knew it would stir the masses to action.
I also agree that violence is tragic and we should always take care not to glorify or idealize it, but we should also contextualize it when used by people resisting systems of oppression. As Nelson Mandela said:
> A freedom fighter learns the hard way that it is the oppressor who defines the nature of the struggle,and the oppressed is often left no recourse but to use methods that mirror those of the oppressor.At a point, one can only fight fire with fire