Answer:
1). Ask the professor(s) after/before class if you could speak to them. (Ask in-person/Virtual Class)
2). Be polite when you ask them if they could be a recommendation.
3). Provide all necessary information.
4). Give an estimated deadline of when their letter needs to be submitted. (Ask in advance of the deadline)
Explanation:
Hope this helps.