Skip to content

Commit 4e79b7f

Browse files
committed
Update student name in filter_student_height_weight.py
1 parent b2c8212 commit 4e79b7f

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

27th March/sameCity.py

Whitespace-only changes.

27th March/superMethodExplanation.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
class Animal:
2+
def __init__(self, name):
3+
self.name = name
4+
5+
def make_sound(self):
6+
print("I am an animal!")
7+
8+
9+
class Dog(Animal):
10+
def make_sound(self):
11+
print("Woof!")
12+
13+
def __init__(self, name):
14+
super().__init__(name) # calling the super class constructor
15+
16+
d = Dog("Buddy")
17+
d.make_sound()
18+
d.name

filter_student_height_weight/filter_student_height_weight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ def filter_data(students):
66
'Mukesh': (6.2, 70),
77
'Anant': (5.9, 65),
88
'Nita': (6.0, 68),
9-
'Radhika': (5.8, 66)
9+
'Radhikaa': (5.8, 66)
1010
}
1111

1212
print("Original Dictionary:")

0 commit comments

Comments
 (0)