Python CLASS VARIABLES explained easy! 🎓

  Рет қаралды 12,706

Bro Code

Bro Code

Күн бұрын

Пікірлер: 21
@BroCodez
@BroCodez 7 ай бұрын
# class variables = Shared among all instances of a class # Defined outside the constructor # Allow you to share data among all objects created from that class class Student: class_year = 2025 num_students = 0 def __init__(self, name, age): self.name = name self.age = age Student.num_students += 1 student1 = Student("Spongebob", 30) student2 = Student("Patrick", 35) student3 = Student("Squidward", 55) student4 = Student("Sandy", 27) print(f"My graduating class of {Student.class_year} has {Student.num_students} students") print(student1.name) print(student2.name) print(student3.name) print(student4.name)
@JassersChannel
@JassersChannel 6 ай бұрын
what is the use of class variables, like can you give me basic for-dummies example?
@Ronstadtlive
@Ronstadtlive 7 ай бұрын
How did you know I was struggling with this? Your timing is intuitive and impeccable
@AgGh-c5s
@AgGh-c5s 7 ай бұрын
Make a video about Django and python
@mahadkhan3014
@mahadkhan3014 7 ай бұрын
BRO what happened?? 76 videos in 2 days???
@bacon5481
@bacon5481 7 ай бұрын
welcome back brotha, hope you been well, thanks for all that you do
@ReighKnight
@ReighKnight 7 ай бұрын
Please continue making this series. It is tremendously valuable. Cannot thank you enough Bro
@3ameralhlal274
@3ameralhlal274 4 ай бұрын
Thank You You are the best one to teach Python.
@Mocomochii
@Mocomochii 7 ай бұрын
THE GOAT IS BACK 🔥 love u
@DwayneLofton
@DwayneLofton 7 ай бұрын
Even though I know classes reasonably well i always find nuggets in your videos. 🎉
@mr.unknown5307
@mr.unknown5307 7 ай бұрын
Please make a tutorial on Nmap in python reply = input("Reply: ").lower() while(reply != "yes"): print("Please Bro!") reply = input("Reply: ").lower() print("Thanks Bro!");
@Pradeep-mh9ui
@Pradeep-mh9ui 2 ай бұрын
Thanks!
@luisladino6162
@luisladino6162 6 ай бұрын
Thanks bro
@TamilCoder.
@TamilCoder. 7 ай бұрын
Thank you bro❤
@kedarppopuri2776
@kedarppopuri2776 7 ай бұрын
Bro please make django tutorial. It is a Humble request from your loyal follower
@Imoqine
@Imoqine 7 ай бұрын
Thanks Bro , would you like to start assembly language please , I find it hard. we understand you're explanation the most .
@adamcylee
@adamcylee 7 ай бұрын
You are very good. Love from SINGAPORE!
@tytusmajewski7092
@tytusmajewski7092 24 күн бұрын
fun fact - sponge bob was born in 1986- as states his driving license - so he is 38 now
@crystallinnen5600
@crystallinnen5600 6 ай бұрын
___hello___
@crystallinnen5600
@crystallinnen5600 6 ай бұрын
\__hello\__
@crystallinnen5600
@crystallinnen5600 6 ай бұрын
:yt:
Python INHERITANCE in 6 minutes! 👨‍👦‍👦
6:57
Bro Code
Рет қаралды 10 М.
10 Important Python Concepts In 20 Minutes
18:49
Indently
Рет қаралды 378 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Functions vs Classes: When to Use Which and Why?
10:49
ArjanCodes
Рет қаралды 169 М.
SUPER() in Python explained! 🔴
13:06
Bro Code
Рет қаралды 15 М.
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 334 М.
Python MAGIC METHODS are easy! 🌟
13:36
Bro Code
Рет қаралды 10 М.
Python Data Classes Are AMAZING! Here's Why
16:11
Tech With Tim
Рет қаралды 87 М.
Python OOP Tutorial 1: Classes and Instances
15:24
Corey Schafer
Рет қаралды 4,5 МЛН
Learn Python Object Oriented Programming! 🚗
12:18
Bro Code
Рет қаралды 33 М.
Functions in Python are easy 📞
10:38
Bro Code
Рет қаралды 602 М.
Learn Python DECORATORS in 7 minutes! 🎊
7:22
Bro Code
Рет қаралды 20 М.