Тёмный

Learn Python COMPOSITION in 7 minutes! 🚘 

Bro Code
Подписаться 2,2 млн
Просмотров 7 тыс.
50% 1

Опубликовано:

 

28 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 29   
@BroCodez
@BroCodez 4 месяца назад
# Aggregation = A relationship where one object contains references to other INDEPENDENT objects # "has-a" relationship # Composition = The composed object directly owns its components, which cannot exist independently # "owns-a" relationship class Engine: def __init__(self, horse_power): self.horse_power = horse_power class Wheel: def __init__(self, size): self.size = size class Car: def __init__(self, make, model, horse_power, wheel_size): self.make = make self.model = model self.engine = Engine(horse_power) self.wheels = [Wheel(wheel_size) for wheel in range(4)] def display_car(self): return f"{self.make} {self.model} {self.engine.horse_power}(hp) {self.wheels[0].size}in" car1 = Car(make="Ford", model="Mustang", horse_power=500, wheel_size=18) car2 = Car(make="Chevrolet", model="Corvette", horse_power=670, wheel_size=19) print(car1.display_car()) print(car2.display_car())
@NazneenNaharNishi
@NazneenNaharNishi 4 месяца назад
Why you are not making an Android Development Tutorial with your extra talented content???????
@mathimathiyazhagan-b1m
@mathimathiyazhagan-b1m 4 месяца назад
bro ,do more java video's !! your video's more helpful to me!! love from India💌
@1Mohammed0
@1Mohammed0 4 месяца назад
Bro code do you have an instagram cuz i want to contact with you and ask you about something in phython cuz im right now completing the 12h phython course.
@iron4537
@iron4537 Месяц назад
im surprised this video got so few views considering your subscriber count, it helped me a lot, thanks
@RajaPatel-h3t
@RajaPatel-h3t 4 месяца назад
👉 Vote for Node js and Express js Tutorial
@avinashkamadri4221
@avinashkamadri4221 4 месяца назад
Good work with the javascript video bro, learned a alot fron your channel 💯
@xzex2609
@xzex2609 4 месяца назад
it's great I hope you make more object oriented concept specially in python
@mathimathiyazhagan-b1m
@mathimathiyazhagan-b1m 4 месяца назад
bro ,do more java video's !! your video's more helpful to me!! love from India
@ИльяКулагин-о9й
@ИльяКулагин-о9й 4 месяца назад
It's nice that if I learn python, I will have so many free video lessons)🐍
@BananaMan6763
@BananaMan6763 4 месяца назад
I'm still taking notes on your amazing data structure and algorithm video playlist. I think the problem is my notes are lots of words, but the concepts, specifically the algorithms, are too hard for me to take note of with just words. I think I need to write down the main info and memorize how the algorithms look like when used.
@RathibandlaHruthikRaj
@RathibandlaHruthikRaj 4 месяца назад
Great content 💯💯, can u please start a data structures and algorithms series using python.
@ispylugaw9775
@ispylugaw9775 4 месяца назад
Heyo man, greetings from the newbie
@josel82
@josel82 4 месяца назад
Hey bro, you the Python man you know 🤜
@godfryddolbinczykunical1571
@godfryddolbinczykunical1571 4 месяца назад
Hi, Do you have in plans an course about QT or other desktop applications framework course?
@tioalex-px
@tioalex-px 4 месяца назад
TypeScript course please!!!
@jayasan1649
@jayasan1649 4 месяца назад
hi bro!love from sri lanka.could u do a full mernstack project
@soorajshankar6913
@soorajshankar6913 4 месяца назад
Hi bro iam from India ❤❤❤
@LakkiExplainer
@LakkiExplainer 4 месяца назад
Can you help me in this question Write a C++ program to insert a new node at the beginning of a Singly Linked List with the values 13 11 9 7 5 3 1 . The node value to be inserted is 0. Only test case 1 has passed , rest of the test cases has failed to pass.
@xzex2609
@xzex2609 4 месяца назад
#include struct Node { int data; Node* next; }; // Function to insert a new node at the beginning of the list void insertAtBeginning(Node*& head, int newData) { // Create a new node Node* newNode = new Node(); newNode->data = newData; newNode->next = head; // Link the new node to the old head head = newNode; // Update the head to point to the new node } // Function to print the linked list void printList(Node* node) { while (node != nullptr) { std::cout data next; } std::cout
@gigihtaufiq3314
@gigihtaufiq3314 4 месяца назад
Can you make nodejs course bro?
@soorajshankar6913
@soorajshankar6913 4 месяца назад
Hi bro iam from India
@BroCodez
@BroCodez 4 месяца назад
Hello 👋
@conclashgo4160
@conclashgo4160 4 месяца назад
can anyone tell me what is this
@zeroichi4438
@zeroichi4438 4 месяца назад
Has anyone else ever wondered what bro looks like? As far as I know he hasn't shown us his face yet
@EthanTheGreatShorts
@EthanTheGreatShorts 4 месяца назад
Go to his non-coding channel
@zeroichi4438
@zeroichi4438 4 месяца назад
@@EthanTheGreatShorts what's the channel name?
@xzex2609
@xzex2609 4 месяца назад
I only saw his hands in java course
@1Mohammed0
@1Mohammed0 4 месяца назад
Bro code do you have an instagram cuz i want to contact with you and ask you about something in phython cuz im right now completing the 12h phython course
Далее
SUPER() in Python explained! 🔴
13:06
Просмотров 11 тыс.
Learn Python OOP in under 20 Minutes
18:32
Просмотров 82 тыс.
ДУБАЙСКАЯ ШОКОЛАДКА 🍫
00:55
Просмотров 2,6 млн
🎙А НЕ СПЕТЬ ли мне ПЕСНЮ?🕺🏼
3:06:10
Let's code a beginner's Python BANK PROGRAM 💰
15:01
Просмотров 229 тыс.
25 nooby Python habits you need to ditch
9:12
Просмотров 1,8 млн
Learn Python LIST COMPREHENSIONS in 10 minutes! 📃
10:20
The Flaws of Inheritance
10:01
Просмотров 961 тыс.
Python MAGIC METHODS are easy! 🌟
13:36
Просмотров 8 тыс.
Learn Python DECORATORS in 7 minutes! 🎊
7:22
Просмотров 14 тыс.
Functions in Python are easy 📞
10:38
Просмотров 532 тыс.
Learn Python Object Oriented Programming! 🚗
12:18
Просмотров 26 тыс.
Learn Python NESTED CLASSES in 9 minutes! 📛
9:49
Просмотров 4,7 тыс.
Python 101: Learn the 5 Must-Know Concepts
20:00
Просмотров 1,2 млн