Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2b2f2ef

Browse files
Saidev BattulaSaidev Battula
Saidev Battula
authored and
Saidev Battula
committed
Added comments in ClassesAndObjects.py
1 parent 7bbb49d commit 2b2f2ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎OOP/01_classAndObject.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ def add(self, c):
99
self.b += c.b
1010

1111
c1 = Complex(10, 20)
12-
print(c1.a, c1.b)
13-
c1.print()
12+
print(c1.a, c1.b)# 10 20
13+
c1.print()# 10+i20
1414
c2 = Complex(20, 30)
1515
c1.add(c2)
16-
c1.print()
16+
c1.print()# 30+i50

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /