Advertisement
python_notes

Nested Parentheses

Aug 18th, 2014
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. # Nested Parentheses
  2.  
  3. This means you could have Parentheses inside Parentheses like this   ((30 + 1) * 4) / 10   to show the order of operation and which to do first.
  4.  
  5. So for the above you would first Multiply 30 + 1 since it has double Parentheses around it and then you would multiply times 4 since it has a single Parentheses around it then you would divide by 10
  6. getting a total value of 12
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement