Welcome to another tutorial in the intermediate series, this tutorial is about operator overloading. So in programming terms operator overloading basically means using an operator for multiple different tasks. You can change the meaning of an operator in Python depending upon the operands used.
So for example we can use the + operator to add two numbers and get the addition of those numbers. And we can also use the + operator two concatenate two strings. So we are overloading the plus operator for different results.
: _add_ ()
: _sub_ ()
: _mul_ ()
== : __eq__()
!= : __ne__()
https://www.geeksforgeeks.org/operato...
Keyboard I Use: https://amzn.to/2NgjPFV
(Affiliate Link, Helps the Channel)
Discord Server:
/ discord
On this page of the site you can watch the video online Python Intermediate: Operator Overloading with a duration of hours minute second in good quality, which was uploaded by the user BitCode 01 July 2021, share the link with friends and acquaintances, this video has already been watched 52 times on youtube and it was liked by 10 viewers. Enjoy your viewing!