Jeg tager et dansk kursus på Duolingo.
Almost correct. In danish a lot of words that are split in two in English are one word in Danish. So you should have written that you are: ved at tage et danskkursus.
A note for Swedish speakers: Danish "et kursus" vs. Swedish "en kurs". There is a curious gender difference here.