



{"id":8422,"date":"2026-04-30T19:25:19","date_gmt":"2026-04-30T13:55:19","guid":{"rendered":"https:\/\/computersirkiclass.com\/cskc\/?p=8422"},"modified":"2026-07-21T16:57:24","modified_gmt":"2026-07-21T11:27:24","slug":"what-are-python-keywords-2","status":"publish","type":"post","link":"https:\/\/computersirkiclass.com\/cskc\/what-are-python-keywords-2\/","title":{"rendered":"Python &#8211; precedence of operator"},"content":{"rendered":"<div id=\"modal-ready\">\r\n<p class=\"wp-block-paragraph\">As we know that operators are evaluated in a specific order. This table is often useful to resolve certain situations to evaluate a value precisely.<\/p>\r\n\r\n\r\n\r\n<figure class=\"wp-block-table\">\r\n<table class=\"has-fixed-layout\">\r\n<tbody>\r\n<tr>\r\n<td><strong>Operator<\/strong><\/td>\r\n<td><strong>Description\u00a0<\/strong><\/td>\r\n<\/tr>\r\n<tr>\r\n<td>( )<\/td>\r\n<td>Parentheses<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>**<\/td>\r\n<td>Exponentiation<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>+x, &#8211; x, ~x<\/td>\r\n<td>Unary plus, minus and bitwise not<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>*, @, \/, \/\/, %<\/td>\r\n<td>Multiplication, Matrix multiplication, Division, Floor Division and Remainder<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>+, &#8211;<\/td>\r\n<td>Addition, Subtraction<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>&lt;&lt;, &gt;&gt;<\/td>\r\n<td>Left shift, right shift (bitwise operator)<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>&amp;<\/td>\r\n<td>Bitwise And<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>^<\/td>\r\n<td>Bitwise XOR<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>|<\/td>\r\n<td>Bitwise OR<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>In, not in, is, is not, &lt;, &lt;=, &gt;, &gt;=, !=, ==<\/td>\r\n<td>Membership, Identity and comparison operators<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>not<\/td>\r\n<td>Logical not operator<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>and<\/td>\r\n<td>Logical and operator<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>or<\/td>\r\n<td>Logical or operator<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>If &#8211; else<\/td>\r\n<td>Conditional expression<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>=<\/td>\r\n<td>Assignment<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<\/figure>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Since python is an active and evolving language, learners are advised to have a look at this link to see an updated and more detailed version of the above table. <a href=\"https:\/\/docs.python.org\/3\/reference\/expressions.html#operator-precedence\">https:\/\/docs.python.org\/3\/reference\/expressions.html#operator-precedence<\/a>\u00a0<\/p>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>As we know that operators are evaluated in a specific order. This table is often useful to resolve certain situations to evaluate a value precisely. Operator Description\u00a0 ( ) Parentheses ** Exponentiation +x, &#8211; x, ~x Unary plus, minus and bitwise not *, @, \/, \/\/, % Multiplication, Matrix multiplication, Division, Floor Division and Remainder [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9788,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[114,244],"tags":[],"model_paper":[],"class_list":["post-8422","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cnr","category-python","python_index-103090-operator-precedence","board-cbse-083-computer-science","board-python"],"acf":[],"_links":{"self":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/8422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/comments?post=8422"}],"version-history":[{"count":2,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/8422\/revisions"}],"predecessor-version":[{"id":9789,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/8422\/revisions\/9789"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/media\/9788"}],"wp:attachment":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/media?parent=8422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/categories?post=8422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/tags?post=8422"},{"taxonomy":"model_paper","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/model_paper?post=8422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}