Rabat - A court in Taourirt, eastern Morocco, has sentenced three men to three years in prison each for practicing homosexuality, news website Al Youm24 reported.