Skip to content

Commit 8a852b5

Browse files
author
Kendre
committed
Added exercises for Day 6 of 100DaysOfCode
1 parent d4b6a12 commit 8a852b5

File tree

3 files changed

+486
-2
lines changed

3 files changed

+486
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.ipynb_checkpoints
2+
*/.ipynb_checkpoints

Day_5.ipynb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -374,22 +374,27 @@
374374
}
375375
],
376376
"source": [
377+
"# creating animal class\n",
377378
"class Animal:\n",
378379
" def speak(self):\n",
379380
" print(\"-- This method return animal sounds --\")\n",
380-
" \n",
381+
"\n",
382+
"# creating Dog class\n",
381383
"class Dog(Animal):\n",
382384
" def speak(self):\n",
383385
" return 'woof!'\n",
384386
"\n",
387+
"# creating Cat class\n",
385388
"class Cat(Animal):\n",
386389
" def speak(self):\n",
387390
" return 'meow!'\n",
388-
" \n",
391+
"\n",
392+
"# creating Cow class\n",
389393
"class Cow(Animal):\n",
390394
" def speak(self):\n",
391395
" return 'moo!'\n",
392396
"\n",
397+
"# creating objects\n",
393398
"ani_obj = Animal()\n",
394399
"dog_obj = Dog()\n",
395400
"cat_obj = Cat()\n",

0 commit comments

Comments
 (0)