have methodconjugate()which changes the sign of the imaginary part for examplez conjugate(( - conjugate(( + jnotice that here we have called method on literal complex number in generalpython allows us to call methods or access attributes on any literalas long as the literal' data type provides the called method or the attribute--howeverthis does not apply to special methodssince these always have corresponding operators such as that should be used instead for example real produces imag produces and + produces + the complex data type can be called as function--with no arguments it returns jwith complex argument it returns copy of the argumentand with any other argument it attempts to convert the given object to complex when used for conversions complex(accepts either single string argumentor one or two floats if just one float is giventhe imaginary part is taken to be the functions in the math module do not work with complex numbers this is deliberate design decision that ensures that users of the math module get exceptions rather than silently getting complex numbers in some situations users of complex numbers can import the cmath modulewhich provides complex number versions of most of the trigonometric and logarithmic functions that are in the math moduleplus some complex number-specific functions such as cmath phase()cmath polar()and cmath rect()and also the cmath pi and cmath constants which hold the same float values as their math module counterparts decimal numbers |in many applications the numerical inaccuracies that can occur when using floats don' matterand in any case are far outweighed by the speed of calculation that floats offer but in some cases we prefer the opposite trade-offand want complete accuracyeven at the cost of speed the decimal module provides immutable decimal numbers that are as accurate as we specify calculations involving decimals are slower than those involving floatsbut whether this is noticeable will depend on the application to create decimal we must import the decimal module for exampleimport decimal decimal decimal(