Q: why is car stalling after starting? on 2002 Toyota Camry

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
The battery was disconnected for along period of time and once it was reconnected the car stalls after every start. if you keep your foot on the gas and keep it reved up, it will stay running. the minute you let off the gas it drops to about 200rpms and stalls.
(1) Answer
Will take some time for idle relearn. There are many suggestions for idle relearn as i am
sure you will see. But bottom line is it will learn idle strategy just by running
the engine,put drive,turn on a/c ect. Do this sitting in driveway befor
driving car.