How can I fix code P0223 on 2009 Chevrolet Cobalt

Can someone help me fix code p0223 (Throttle/Pedal Position Sensor/Switch "B" Circuit High input. I was thinking about just buying a new throttle but don't know if thats the issue.

Asked by for the 2009 Chevrolet Cobalt
you probably need a new tps
WRONG...maybe a new TPPS
sorry I forgot a p
1 more answer , 6 more comments
You have an issue with the Throttle Pedal Position Sensor or wiring..."circuit high" means that there is a lot of resistance or open in the circuit.
sorry your mechanic
Thanks for the reply's and one more thing i forgot to mention is it tells me the ENG PWR REDUCED and SERVICE TRACTION on the dashboard.
With an issue with the Throttle Pedal Position Sensor, the ECU will disable Traction Control and reduce Engine Power...The ECU has no clue as to what the Throttle Pedal Position is.
thanks for everything ill try and see if i can take it to a mechanic today. do i need to reflash my ecu?
sorry dont know alot about cars
to be CORRECT its apps for that sensor. lol
did you get a new pedal sensor or how did you fix it? ive got the same issue with mine