Q: How can I fix code P0223 on 2009 Chevrolet Cobalt

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
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.
(2) Answers
(8) 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.
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