Alcohols are not hydrocarbons as they contain an oxygen atom. 
They have the functional group ‘-OH‘ in their molecule. 

They have the general formula: CnH₂n₊₁OH
If (n = 3), the compound would be:
C₃H₂₍₃₎₊₁OH = C₃H₇OH

Every alcohol’s name ends in ‘-ol’.

An alcohol’s prefix always changes according the number of carbon atoms present in the compound. 

Some common alcohols:

Name of the AlcoholNo. of Carbon atomsFormula
Methanol1CH₃OH
Ethanol2C₂H₅OH
Propanol3C₃H₇OH
Butanol4C₄H₉OH
Pentanol5C₅H₁₁OH
Hexanol6C₆H₁₃OH
Heptanol7C₇H₁₅OH
Octanol8C₈H₁₇OH
Nonanol9C₉H₁₉OH
Decanol10C₁₀H₂₁OH