The number of carbon atoms in the longest chain: 3
Parent alkane: Propane
Functional group: -OH (Ol)
Assign the number: 2
The carbon atom to which the -OH group is attached is numbered as C2.
If the carbon chain of the compound contains a -OH group then change the ending of the parent name, i.e., ‘e’ of propane is replaced by ‘Ol’. (ol stands for alcohol)
Parent suffix: Propan-2-Ol
IUPAC name: Propan-2-Ol