You are asked to define the imaginary numbers (whose values are multiplied with (-1)**(0.5)) as "Imag", as a new "Object" using the Object-Oriented Programming methods of the PYTHON programming language, so that when you print such an object, it will put the character "i" at the end. For example, Imag(5) = < 5i.
In addition, you are asked to define the functions that will add, subtract, multiply, and divide variables of this object type, so that the code that you are required to write to execute the following instructions can operate properly:
1. Define a variable as equal to 5i.
2. Define the second variable as 2i.
3. Define and print the third variable by adding the above two variables.
4. Subtract the second variable from the third variable.
5. Obtain and print the fourth variable by multiplying the third and first variables.
6. Print the result of the division of the third variable to the second variable.
NOTE:
Addition: ai + bi = (a + b)i (result is imaginary)
Subtraction: ai - bi = (a - b)i (result is imaginary)
Multiplication: ai * bi = (-1) * a * b (result is real)
Division: ai / bi = (a * b) (result is real)