I agree with the above post of starting off with a small bore rifle like a .22, any of the Marlin rifles (i had a Model 25 7 shot bolt-action as my first gun) are nice, or there’s always the immortal Ruger 10/22 semiauto
for a beginner, i’d reccomend going with a bolt or lever action, for simplicity and safety’s sake, with a semiauto, every time you pull the trigger, the firearm chambers the next round and is ready to fire, lets say you take one shot then set the rifle down, that rifle is still loaded and ready to fire, if you take one shot with a bolt or lever action rifle, then set it down, the spent cartridge is still in the breech, and the firing pin is resting on the primer (or in the case of the .22, the rim, as the .22 is a rimfire cartridge), a bolt or lever-action will not be ready to fire again until you cycle the action to chamber the next round…
a bolt/lever action also prevents you from succuming to the urge of rapidly cycling thru an entire clip “rapid fire” style, yes it “looks cool” and i admit that it’s fun, but it’s not safe, it wastes ammo, and it is definitely not accurate
as a beginning shooter, your first firearm should emphasize safety, accuracy, and reliability above all else, those traits are all present in a bolt or lever action firearm
if you want to start with a handgun (not reccomended, learn the basics on a rifle first, the skillset transfers over easily, and the basics of firearm safety are universal), start with a single action revolver like the Ruger Single-Six, it fires .22LR, and you can get a .22 Magnum cylinder if you want a slightly more powerful round
the difference between a Single-Action and Double-Action revolver is simple, a single action requires the shooter to thumb the hammer back to firing position before a shot is fired, once the hammer has struck the primer, pulling the trigger again will not have any results
a double-action revolver is always ready to fire, pulling back on the trigger will chamber the next round and fire it, yes you can pull the hammer back manually to chamber the next round, but you don’t have to, as the DA is always ready to fire, a DA does use a heavier mainspring to prevent “accidental” firing (takes a stronger and longer pull on the trigger to chamber-and-fire a DA via the trigger), but there is no inherent “safety” feature on most DA revolvers, i know some of the newer Taurus revolvers have a lockable hammer, but you need a hex-driver and it’s not simple or convenient to do