A Turkish court sentenced leaders of a 2016 attempted coup to life in jail on Thursday, convicting hundreds of army officers, pilots and civilians over a failed bid to topple President Recep Tayyip Erdogan directed from an air base near the capital Ankara.