{"id":656,"date":"2021-02-26T18:35:06","date_gmt":"2021-02-26T13:05:06","guid":{"rendered":"https:\/\/cbsepython.in\/?p=656"},"modified":"2021-06-04T23:19:12","modified_gmt":"2021-06-04T17:49:12","slug":"operator-in-python","status":"publish","type":"post","link":"https:\/\/cbsepython.in\/operator-in-python\/","title":{"rendered":"Operator in python"},"content":{"rendered":"<h3><span style=\"color: #000000;\">Operator in python<\/span><\/h3>\n<p><span style=\"color: #000000;\">Operators are the constructs which can manipulate the value of operands.<\/span><\/p>\n<p><span style=\"color: #000000;\">Consider the expression 4 + 5 = 9. Here, 4 and 5 are called operands and + is called operator.<\/span><\/p>\n<h3><span style=\"color: #000000;\">Types of Operator<\/span><\/h3>\n<p><span style=\"color: #000000;\">Python language supports the following types of operators.<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">Arithmetic Operators<\/span><\/li>\n<li><span style=\"color: #000000;\">Comparison (Relational) Operators<\/span><\/li>\n<li><span style=\"color: #000000;\">Assignment Operators<\/span><\/li>\n<li><span style=\"color: #000000;\">Logical Operators<\/span><\/li>\n<li><span style=\"color: #000000;\">Bitwise Operators<\/span><\/li>\n<li><span style=\"color: #000000;\">Membership Operators<\/span><\/li>\n<li><span style=\"color: #000000;\">Identity Operators<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">Let us have a look on all operators one by one.<\/span><\/p>\n<h3><span style=\"color: #000000;\">Python Arithmetic Operators<\/span><\/h3>\n<p><span style=\"color: #000000;\">Assume variable a holds 10 and variable b holds 20, then<\/span><\/p>\n<table width=\"739\">\n<tbody>\n<tr>\n<td width=\"104\"><span style=\"color: #000000;\"><strong>Operator<\/strong><\/span><\/td>\n<td width=\"313\"><span style=\"color: #000000;\"><strong>Description<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Example<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">+ Addition<\/span><\/td>\n<td><span style=\"color: #000000;\">Adds values on either side of the operator.<\/span><\/td>\n<td><span style=\"color: #000000;\">a + b = 30<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">&#8211; Subtraction<\/span><\/td>\n<td><span style=\"color: #000000;\">Subtracts right hand operand from left hand operand.<\/span><\/td>\n<td><span style=\"color: #000000;\">a \u2013 b = -10<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">* Multiplication<\/span><\/td>\n<td><span style=\"color: #000000;\">Multiplies values on either side of the operator<\/span><\/td>\n<td><span style=\"color: #000000;\">a * b = 200<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">\/ Division<\/span><\/td>\n<td><span style=\"color: #000000;\">Divides left hand operand by right hand operand<\/span><\/td>\n<td><span style=\"color: #000000;\">b \/ a = 2<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">% Modulus<\/span><\/td>\n<td><span style=\"color: #000000;\">Divides left hand operand by right hand operand and returns remainder<\/span><\/td>\n<td><span style=\"color: #000000;\">b % a = 0<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">** Exponent<\/span><\/td>\n<td><span style=\"color: #000000;\">Performs exponential (power) calculation on operators<\/span><\/td>\n<td><span style=\"color: #000000;\">a**b =10 to the power 20<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">\/\/<\/span><\/td>\n<td><span style=\"color: #000000;\">Floor Division &#8211; The division of operands where the result is the quotient in which the digits after the decimal point are removed. But if one of the operands is negative, the result is floored, i.e., rounded away from zero (towards negative infinity) \u2212<\/span><\/td>\n<td><span style=\"color: #000000;\">9\/\/2 = 4 and 9.0\/\/2.0 = 4.0, -11\/\/3 = -4, -11.0\/\/3 = -4.0<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span style=\"color: #000000;\">Python Comparison Operators<\/span><\/h3>\n<p><span style=\"color: #000000;\">These operators compare the values on either sides of them and decide the relation among them. They are also called Relational operators.<\/span><\/p>\n<p><span style=\"color: #000000;\">Assume variable a holds 10 and variable b holds 20, then \u2212<\/span><\/p>\n<table width=\"739\">\n<tbody>\n<tr>\n<td width=\"76\"><span style=\"color: #000000;\"><strong>Operator<\/strong><\/span><\/td>\n<td width=\"313\"><span style=\"color: #000000;\"><strong>Description<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Example<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">==<\/span><\/td>\n<td><span style=\"color: #000000;\">If the values of two operands are equal, then the condition becomes true.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a == b) is not true.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">!=<\/span><\/td>\n<td><span style=\"color: #000000;\">If values of two operands are not equal, then condition becomes true.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a != b) is true.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">&lt;&gt;<\/span><\/td>\n<td><span style=\"color: #000000;\">If values of two operands are not equal, then condition becomes true.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a &lt;&gt; b) is true. This is similar to != operator.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">&gt;<\/span><\/td>\n<td><span style=\"color: #000000;\">If the value of left operand is greater than the value of right operand, then condition becomes true.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a &gt; b) is not true.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">&lt;<\/span><\/td>\n<td><span style=\"color: #000000;\">If the value of left operand is less than the value of right operand, then condition becomes true.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a &lt; b) is true.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">&gt;=<\/span><\/td>\n<td><span style=\"color: #000000;\">If the value of left operand is greater than or equal to the value of right operand, then condition becomes true.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a &gt;= b) is not true.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">&lt;=<\/span><\/td>\n<td><span style=\"color: #000000;\">If the value of left operand is less than or equal to the value of right operand, then condition becomes true.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a &lt;= b) is true.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">Python Assignment Operators<\/span><\/h3>\n<p><span style=\"color: #000000;\">Assume variable a holds 10 and variable b holds 20, then \u2212<\/span><\/p>\n<p>&nbsp;<\/p>\n<table width=\"739\">\n<tbody>\n<tr>\n<td width=\"76\"><span style=\"color: #000000;\"><strong>Operator<\/strong><\/span><\/td>\n<td width=\"313\"><span style=\"color: #000000;\"><strong>Description<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Example<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">=<\/span><\/td>\n<td><span style=\"color: #000000;\">Assigns values from right side operands to left side operand<\/span><\/td>\n<td><span style=\"color: #000000;\">c = a + b assigns value of a + b into c<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">+= Add AND<\/span><\/td>\n<td><span style=\"color: #000000;\">It adds right operand to the left operand and assign the result to left operand<\/span><\/td>\n<td><span style=\"color: #000000;\">c += a is equivalent to c = c + a<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">-= Subtract AND<\/span><\/td>\n<td><span style=\"color: #000000;\">It subtracts right operand from the left operand and assign the result to left operand<\/span><\/td>\n<td><span style=\"color: #000000;\">c -= a is equivalent to c = c &#8211; a<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">*= Multiply AND<\/span><\/td>\n<td><span style=\"color: #000000;\">It multiplies right operand with the left operand and assign the result to left operand<\/span><\/td>\n<td><span style=\"color: #000000;\">c *= a is equivalent to c = c * a<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">\/= Divide AND<\/span><\/td>\n<td><span style=\"color: #000000;\">It divides left operand with the right operand and assign the result to left operand<\/span><\/td>\n<td><span style=\"color: #000000;\">c \/= a is equivalent to c = c \/ a<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">%= Modulus AND<\/span><\/td>\n<td><span style=\"color: #000000;\">It takes modulus using two operands and assign the result to left operand<\/span><\/td>\n<td><span style=\"color: #000000;\">c %= a is equivalent to c = c % a<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">**= Exponent AND<\/span><\/td>\n<td><span style=\"color: #000000;\">Performs exponential (power) calculation on operators and assign value to the left operand<\/span><\/td>\n<td><span style=\"color: #000000;\">c **= a is equivalent to c = c ** a<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">\/\/= Floor Division<\/span><\/td>\n<td><span style=\"color: #000000;\">It performs floor division on operators and assign value to the left operand<\/span><\/td>\n<td><span style=\"color: #000000;\">c \/\/= a is equivalent to c = c \/\/ a<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">Python Bitwise Operators<\/span><\/h3>\n<p><span style=\"color: #000000;\">Bitwise operator works on bits and performs bit by bit operation. Assume if a = 60; and b = 13; Now in the binary format their values will be 0011 1100 and 0000 1101 respectively. Following table lists out the bitwise operators supported by Python language with an example each in those, we use the above two variables (a and b) as operands \u2212<\/span><\/p>\n<p><span style=\"color: #000000;\">a = 0011 1100<\/span><\/p>\n<p><span style=\"color: #000000;\">b = 0000 1101<\/span><\/p>\n<p><span style=\"color: #000000;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/p>\n<p><span style=\"color: #000000;\">a&amp;b = 0000 1100<\/span><\/p>\n<p><span style=\"color: #000000;\">a|b = 0011 1101<\/span><\/p>\n<p><span style=\"color: #000000;\">a^b = 0011 0001<\/span><\/p>\n<p><span style=\"color: #000000;\">~a\u00a0 = 1100 0011<\/span><\/p>\n<p><span style=\"color: #000000;\">There are following Bitwise operators supported by Python language.<\/span><\/p>\n<p>&nbsp;<\/p>\n<table width=\"739\">\n<tbody>\n<tr>\n<td width=\"102\"><span style=\"color: #000000;\"><strong>Operator<\/strong><\/span><\/td>\n<td width=\"313\"><span style=\"color: #000000;\"><strong>Description<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Example<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">&amp; Binary AND<\/span><\/td>\n<td><span style=\"color: #000000;\">Operator copies a bit to the result if it exists in both operands<\/span><\/td>\n<td><span style=\"color: #000000;\">(a &amp; b) (means 0000 1100)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">| Binary OR<\/span><\/td>\n<td><span style=\"color: #000000;\">It copies a bit if it exists in either operand.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a | b) = 61 (means 0011 1101)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">^ Binary XOR<\/span><\/td>\n<td><span style=\"color: #000000;\">It copies the bit if it is set in one operand but not both.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a ^ b) = 49 (means 0011 0001)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">~ Binary Ones Complement<\/span><\/td>\n<td><span style=\"color: #000000;\">It is unary and has the effect of &#8216;flipping&#8217; bits.<\/span><\/td>\n<td><span style=\"color: #000000;\">(~a ) = -61 (means 1100 0011 in 2&#8217;s complement form due to a signed binary number.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">&lt;&lt; Binary Left Shift<\/span><\/td>\n<td><span style=\"color: #000000;\">The left operands value is moved left by the number of bits specified by the right operand.<\/span><\/td>\n<td><span style=\"color: #000000;\">a &lt;&lt; 2 = 240 (means 1111 0000)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">&gt;&gt; Binary Right Shift<\/span><\/td>\n<td><span style=\"color: #000000;\">The left operands value is moved right by the number of bits specified by the right operand.<\/span><\/td>\n<td><span style=\"color: #000000;\">a &gt;&gt; 2 = 15 (means 0000 1111)<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">Python Logical Operators<\/span><\/h3>\n<p><span style=\"color: #000000;\">There are following logical operators supported by Python language. Assume variable a holds 10 and variable b holds 20 then<\/span><\/p>\n<table width=\"739\">\n<tbody>\n<tr>\n<td width=\"76\"><span style=\"color: #000000;\"><strong>Operator<\/strong><\/span><\/td>\n<td width=\"313\"><span style=\"color: #000000;\"><strong>Description<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Example<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">and Logical AND<\/span><\/td>\n<td><span style=\"color: #000000;\">If both the operands are true then condition becomes true.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a and b) is true.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">or Logical OR<\/span><\/td>\n<td><span style=\"color: #000000;\">If any of the two operands are non-zero then condition becomes true.<\/span><\/td>\n<td><span style=\"color: #000000;\">(a or b) is true.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">not Logical NOT<\/span><\/td>\n<td><span style=\"color: #000000;\">Used to reverse the logical state of its operand.<\/span><\/td>\n<td><span style=\"color: #000000;\">Not(a and b) is false.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">Python Membership Operators<\/span><\/h3>\n<p><span style=\"color: #000000;\">Python\u2019s membership operators test for membership in a sequence, such as strings, lists, or tuples. There are two membership operators as explained below \u2212<\/span><\/p>\n<table width=\"739\">\n<tbody>\n<tr>\n<td width=\"76\"><span style=\"color: #000000;\"><strong>Operator<\/strong><\/span><\/td>\n<td width=\"313\"><span style=\"color: #000000;\"><strong>Description<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Example<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">In<\/span><\/td>\n<td><span style=\"color: #000000;\">Evaluates to true if it finds a variable in the specified sequence and false otherwise.<\/span><\/td>\n<td><span style=\"color: #000000;\">x in y, here in results in a 1 if x is a member of sequence y.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">not in<\/span><\/td>\n<td><span style=\"color: #000000;\">Evaluates to true if it does not finds a variable in the specified sequence and false otherwise.<\/span><\/td>\n<td><span style=\"color: #000000;\">x not in y, here not in results in a 1 if x is not a member of sequence y.<\/span><\/p>\n<p>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">Python Identity Operators<\/span><\/h3>\n<p><span style=\"color: #000000;\">Identity operators compare the memory locations of two objects. There are two Identity operators explained below \u2212<\/span><\/p>\n<table width=\"739\">\n<tbody>\n<tr>\n<td width=\"76\"><span style=\"color: #000000;\"><strong>Operator<\/strong><\/span><\/td>\n<td width=\"313\"><span style=\"color: #000000;\"><strong>Description<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Example<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">Is<\/span><\/td>\n<td><span style=\"color: #000000;\">Evaluates to true if the variables on either side of the operator point to the same object and false otherwise.<\/span><\/td>\n<td><span style=\"color: #000000;\">x is y, here\u00a0<strong>is<\/strong>\u00a0results in 1 if id(x) equals id(y).<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">is not<\/span><\/td>\n<td><span style=\"color: #000000;\">Evaluates to false if the variables on either side of the operator point to the same object and true otherwise.<\/span><\/td>\n<td><span style=\"color: #000000;\">x is not y, here\u00a0<strong>is not<\/strong>\u00a0results in 1 if id(x) is not equal to id(y).<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3><span style=\"color: #000000;\">Python Operators Precedence<\/span><\/h3>\n<p><span style=\"color: #000000;\">The following table lists all operators from highest precedence to lowest.<\/span><\/p>\n<table width=\"739\">\n<tbody>\n<tr>\n<td><span style=\"color: #000000;\"><strong>Sr.No.<\/strong><\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>Operator &amp; Description<\/strong><\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">1<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>**<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Exponentiation (raise to the power)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">2<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>~ + &#8211;<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Complement, unary plus and minus (method names for the last two are +@ and -@)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">3<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>* \/ % \/\/<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Multiply, divide, modulo and floor division<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">4<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>+ &#8211;<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Addition and subtraction<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">5<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>&gt;&gt; &lt;&lt;<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Right and left bitwise shift<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">6<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>&amp;<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Bitwise &#8216;AND&#8217;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">7<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>^ |<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Bitwise exclusive `OR&#8217; and regular `OR&#8217;<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">8<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>&lt;= &lt; &gt; &gt;=<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Comparison operators<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">9<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>&lt;&gt; == !=<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Equality operators<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">10<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>= %= \/= \/\/= -= += *= **=<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Assignment operators<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">11<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>is is not<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Identity operators<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">12<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>in not in<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Membership operators<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"color: #000000;\">13<\/span><\/td>\n<td><span style=\"color: #000000;\"><strong>not or and<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">Logical operators<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Operator in python Operators are the constructs which can manipulate the value of operands. Consider the expression 4 + 5 = 9. Here, 4 and 5 are called operands and + is called operator. Types of Operator Python language supports the following types of operators. Arithmetic Operators Comparison (Relational) Operators Assignment Operators Logical Operators Bitwise [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-656","post","type-post","status-publish","format-standard","hentry","category-cbse-computer-science-with-python-class-12"],"_links":{"self":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/comments?post=656"}],"version-history":[{"count":0,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/posts\/656\/revisions"}],"wp:attachment":[{"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/media?parent=656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/categories?post=656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cbsepython.in\/wp-json\/wp\/v2\/tags?post=656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}