how to put a comma when writing English,
need to know what are the places
The easiest way to work this out, is by reading the text aloud, and putting a comma wherever it feels natural to pause and take a breath. Although, it may not always be easy to work that out. Here are the most important rules surrounding commas;
Commas are used to separate a list of three or more words or phrases, for example: “I would like the red, blue and yellow pencils please.” The last one is followed by and, therefore does not need a separate comma.
AT ON IN Prepositions - MyEnglishTeacher.eu
Commas are used to separate independent clauses, when they are joined by these coordinating conjunctions – and, but, for, or, nor, so, yet. “I like chocolate, but only when it’s melted.”
Commas are also used to shift between written text and a quotation. For example – He looked at John pleadingly, “Will you wait for me?” he begged.
There are may more rules around commas, but hopefully this should be enough to get you started with the basics!