MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-Python-Course / __str__

Method __str__

Chapter 11 - PS/04_problem4.py:14–15  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12 return Complex(real_part, imag_part)
13
14 def __str__(self):
15 return f"{self.r} + {self.i}i"
16
17
18

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected