+ 1
Why there is no any errors?
list = [5j] print (list)
1 Antwort
+ 3
5j is a complex number: 5 * sqrt(-1)
cplx=5j
print(cplx.real, cplx.imag, cplx.conjugate())
# 0.0 5.0 -5j
print(cplx * cplx)
# (-25+0j)
print(cplx % 2)
#TypeError: can't mod complex numbers