But how does it affect? I will show your this affection by the following figure, drown by MATLAB.
The figure is based on the Black-Sholes Model. The horizontal axis denotes the volatility, and the vertical one denotes the option price, with blue line CALL option and red line PUT option.
We can see it clearly that, the price of both call option and put option increases as the volatility increases.