is this a compound sentence

I want to eat a dessert, but i am on a diet.

Yes, the sentence "I want to eat a dessert, but I am on a diet" is a compound sentence because it consists of two independent clauses joined by the coordinating conjunction "but."

Yes, the sentence "I want to eat a dessert, but I am on a diet" is a compound sentence. It consists of two independent clauses joined together by the coordinating conjunction "but."

Yes, the sentence "I want to eat a dessert, but I am on a diet" is a compound sentence. It consists of two independent clauses connected by the coordinating conjunction "but." An independent clause is a group of words that can stand alone as a complete sentence. In this case, "I want to eat a dessert" is the first independent clause, and "I am on a diet" is the second independent clause.