Operator precedence | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Operator precedence

Going through a table of operator precedence in Python. I’m very new to this whole coding thing, do i need to learn this table by heart? 😳

24th Jul 2018, 8:19 PM
Ale Xandera
Ale Xandera - avatar
2 Answers
+ 6
Whenever in doubts, use parentheses. They will make sure the precedence is as you want it :)
24th Jul 2018, 9:05 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 4
There's no need to learn the whole thing right now. You'll remember it while practicing and as you continue to learn Python.
24th Jul 2018, 8:24 PM
Tim Thuma
Tim Thuma - avatar