You can create compound sentences by combining two simple sentences (Subject and Predicate) with a comma and a conjunction (and, or, so, but, yet). Another option is to use a semicolon (;) to create a compound sentence.
Example: I love ice cream. I prefer frozen yogurt.
I love ice cream, but I prefer frozen yogurt. I love ice cream; I prefer frozen yogurt.
Example: I love ice cream. I prefer frozen yogurt.
I love ice cream, but I prefer frozen yogurt. I love ice cream; I prefer frozen yogurt.