Propanal and propanone have the same formula, C3H6O; moving the carbonyl from the end of the chain to the middle turns the aldehyde into a ketone.
Both have a C=O, a polar bond with a partly positive carbon, which is why nucleophiles attack both at that carbon.
In an aldehyde the carbonyl carbon is bonded to a hydrogen, so it is always at the end of the chain and is carbon 1 in the name, which ends in -al.
In a ketone the carbonyl carbon is bonded to two carbons, so it is inside the chain; the name ends in -one, with a locant when needed, as in 2-pentanone.
The aldehyde's C–H lets oxidizing agents turn it into a carboxylic acid. Tollens' reagent gives a silver mirror with aldehydes but not ketones, which resist oxidation.