Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeWithHarry/The-Ultimate-Python-Course
/ __init__
Method
__init__
Chapter 11 - PS/04_problem4.py:2–4 ·
view source on GitHub ↗
(self, r, i)
Source
from the content-addressed store, hash-verified
1
class
Complex:
2
def
__init__(self, r, i):
3
self.r = r
4
self.i = i
5
6
def
__add__(self, c2):
7
return
Complex(self.r + c2.r, self.i + c2.i)
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected