Question: what is the meaning of idiom turn a trick?
Answer: Engage in sex for pay, as in A young prostitute may turn a dozen tricks in a few hours. This idiom uses trick in the sense of “a sexual act.” [ Slang; mid-1900s]