Become a Professional Python programmer: Classes and OOP - Python Crash Course - Episode 9

preview_player
Показать описание
Classes and object-oriented programming in Python.

⏱ Timestamps
0:00 - Introduction
0:24 - Creating and Using a Class
6:30 - Exercise 1: Creating and Using a Class
11:58 - Working with Classes and Instances
18:10 - Exercise 2: Working with Classes and Instances
24:48 - Inheritance
34:56 - Exercise 3: Inheritance
45:11 - Importing Classes
51:48 - Exercise 4: Importing Classes
54:37 - The Python Standard Library
55:40 - Exercise 5: The Python Standard Library
59:28 - Summary
Рекомендации по теме
Комментарии
Автор

At 38.56 when creating the child class (admin) why didn't we use the 'super' method?

paulgichuki
Автор

hey, thank you for this amazing playlist of the crash course. It has really helped me get through this book faster. Is there anyway you can cover data structures and algorithms using python and link me to some sources.

reyyalachethan
Автор

Thank you for this. Its helping me a lot. I have a question though. In question 9-6 you added super().__init__ while in question 9-7 you did not. Why is that?

mohammedal-ghamdi
Автор

53:55
sorry but didn't the book ask to:

1. store user in one module
2. store privileges AND admin in another
3. create a new file instantiating admin?

thx a lot in advance, your videos have been helping me a lot

bbedeschi
Автор

I think the 9-15. Lottery Analysis: should be like this--
from random import choice

ticket=(1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 'a', 'b', 'c', 'd', 'e')
win=[]
my=[]
for i in range(0, 4):
tik=(choice(ticket))
win.append(tik)
sum=0
while True:
for j in range(0, len(win)):
sum=sum+1
tik2=(choice(ticket))
my.append(tik2)
if win == my:
print(f"it takes {sum} attempts")
break
else:
my.clear()
print(f"winiing lottery number is {win}")
print(f"Your lottery number is {my}")

tusharkakade
Автор

I purchased this book and was following the book to learn Python (my very first step into programming), which was very difficult coz I had to look into the book every time and it made my progress very slow (snail-paced). I started looking into LinkedIn learning and other sources and found this playlist. I was soo excited to see this playlist and continued my learning with you. i have recommended this playlist to anyone who tells me they wanted to learn Python.
Your explanation and attention to small details are a boon to beginners like me. Keep up the good work. U deserve a pat on the back for such a splendid work that is useful to everyone irrespective of their background. Kudos to you. Thankyou, cant say enough!

deepthivis
Автор

Here we are, friend. Little by little... Let's see how may it will take to learn this chapter. Thank you alot for making it easier.

taulguedi
Автор

Hi can you try to make the exercise 9.15 but with the variant that the ticket has 4 choices ['d', 'c', 10, 7], because the code in the "Solutions " is kinda monstrous

ajex
Автор

Amazing Man. You're really amazing. Please would you provide the code.

josephnyamekeblay
Автор

This is by far the hardest chapter of the book so far for me. These videos are useful for understanding what and where. I just think because this chapter exposes you to not just one or two pieces of new terminology but several and then continues to use them in sequence with each other. It can become quite disorienting at times. These videos are a great help! I do worry sometimes that whilst I am able to do the exercises in the book and grasp most concepts, sometimes with chapters like this, i dont _fully_ grasp exactly what every single part of a class is doing....maybe i will need to revisit this chapter or perhaps it will make more sense as time progresses.

tomkmb
Автор

I was doing well until the lottery analysis exercise, i had to review others code in the end to 'get' it

hem
Автор

This is the only chapter that I needed to use a guide for and this was very pithy and useful.

IsaacBXF
Автор

I really want to watch the video but the sound is really low and bad.

gregoriolobato
Автор

One question, in the 9-7 exercise while defininig Admin class under
class Admin(User):

def __init__(self, first_name, last_name, location, age, privileges):
self.privileges = privileges

We have once again defined:
self.first_name = first_name
self.last_name = last_name
self.location = location
self.age = age

Is this necessary ?

aljosha
Автор

Just found this video because I was stuck on an exercise... and WOW - this is amazing! The explanations are so good! I will definitely work through the book on my own, and afterwards, I will watch the video for that chapter. These videos are a game changer - thank you!!!

timohubsch
Автор

Thank you for your time and efforts! Kudos to you mate!

godswillfaII
Автор

Thanks man!!! Really loved this content!


Huge cheers to your hardwork for making this

namandhingra
Автор

at 16:38 car class. Why dont we just put "milage" in the __init__ instead of a making a whole new method?

xuzm
Автор

hello did you have github account bro so we can take that code

abdullahimohammed
Автор

Thank you very much! I get alone with the book but sometimes its a bit complicated and when i look the solutions on the official web and its not well explained.

antoniobernalfernandez
visit shbcf.ru