Advertisement
python_notes

Parentheses

Aug 18th, 2014
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. # Parentheses are used to control the order of operations
  2.  
  3. (10 + 25) * 9     in this this instance (10 + 25)  will be added first and then multiplied by 9 since (10 + 25) is in Parentheses. usually multiplication or division will be done first but the (  ) tell python to do what's inside first.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement