Some time ago your only solution would be a short-term student visa. But due to changes in the immigration legislation, which were brought into force on 1 December 2020, now you only need a visitor visa to stay in the UK for educational purposes for up to 6 months.