What is the cheapest route to take if my check engine light stays on? on 2007 Chevrolet Cobalt

I have a 2007 Chevy Cobalt with bare bone basics. The car rides fine, coolant level is were it should be, air filter is good, and gas cap is on properly. Could gasoline with a different blend and a higher octane amount cause this?

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
2 answers
THEN POST CODE SO WE CAN ADV
check engine light can go on because gas cap isn't tight bring to auto zone for Free Code Check