Inheritance | 30 Days of Code in Python | Day 12

preview_player
Показать описание
Howdy? this is the 12th day of #30daysofcode, in this video, we talked about inheritance as an object-oriented programming term, and how to solve day 12 hackerrank challenge

🔗Links & Resources
---
❔ About The Channel:
#Whilelab is a Youtube channel that focuses on the software side of things here you will find videos explaining the software and top tips videos, and programming so that's why we also have programming tutorials and challenges to have fun from time to time, will also create some exciting projects whenever is possible.
---
⌚ The Current Uploading Schedule:
Two videos a week, on Sunday & Wednesday
---
---
😊 Playlists You May Like:
---
The Channel Social Media Accounts
Twitter :
Instagram :
---
If you've come this far, I would like to thank you for your time and wish you the best, and I hope you enjoy my content if you have any feedback or suggestion, then please let me know in the comments section.
---
#30daysofcode #whilelab #inheritance #python #hackerrank #coding_challeange
Рекомендации по теме
Комментарии
Автор

It also works by using this:




def calculate(self):
average = sum(self.scores)/ len(self.scores) if average < 40:
return "I"
elif average < 55:
return "D"
elif average < 70:
return "P"
elif average < 80:
return "A"
elif average < 90:
return "E"
elif average <= 100:
return "O"
else: return ""

Sakshamjn
visit shbcf.ru