• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
June 29, 2022 |300 Views
Pyhton Inplace Operators - Part 2
  Share   Like
Description
Discussion

1. ixor() :- This function is used to assign and xor the current value. This operation does “a^ = b” operation. Assigning is not performed in case of immutable containers, such as strings, numbers and tuples.

2. ipow() :- This function is used to assign and exponentiate the current value. This operation does “a ** = b” operation. Assigning is not performed in case of immutable containers, such as strings, numbers and tuples.

3. iand() :- This function is used to assign and bitwise and the current value. This operation does “a &= b” operation. Assigning is not performed in case of immutable containers, such as strings, numbers and tuples.

4. ior() :- This function is used to assign and bitwise or the current value. This operation does “a |=b ” operation. Assigning is not performed in case of immutable containers, such as strings, numbers and tuples.


Inplace Operators - Part 2 : https://www.geeksforgeeks.org/inplace-operators-in-python-set-2ixor-iand-ipow/

Read More