Learn Python Object Oriented Programming! 🚗

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 81

  • @BroCodez
    @BroCodez  4 หลายเดือนก่อน +13

    # --------------- car.py ---------------
    class Car:
    def __init__(self, model, year, color, for_sale):
    self.model = model
    self.year = year
    self.color = color
    self.for_sale = for_sale
    def drive(self):
    # print("You drive the car")
    # print(f"You drive the {self.model}")
    print(f"You drive the {self.color} {self.model}")
    def stop(self):
    # print("You stop the car")
    # print(f"You stop the {self.model}")
    print(f"You stop the {self.color} {self.model}")
    def describe(self):
    print(f"{self.year} {self.color} {self.model}")
    # --------------------------------------
    # --------------- main.py ---------------
    from car import Car
    car1 = Car("Mustang", 2024, "red", False)
    car2 = Car("Corvette", 2025, "blue", True)
    car3 = Car("Charger", 2026, "yellow", True)
    print(car1.model)
    print(car1.year)
    print(car1.color)
    print(car1.for_sale)
    car1.drive()
    car1.stop()
    car3.describe()
    # --------------------------------------

    • @beamboy07
      @beamboy07 3 หลายเดือนก่อน

      i luv u

    • @marmosetman
      @marmosetman 3 วันที่ผ่านมา

      Man that was so clear.

  • @UznKe
    @UznKe 4 หลายเดือนก่อน +56

    i always wanted to learn more bout poop. thank u so much. ❤️

    • @llowotv
      @llowotv 4 หลายเดือนก่อน

      i mean keep learning urself, ur icon is poop, not the acronym

    • @UznKe
      @UznKe 4 หลายเดือนก่อน +12

      @@llowotv tf?

    • @p11
      @p11 4 หลายเดือนก่อน

      @@UznKe that guy is schizo dont worry about him

    • @ninjacocovi
      @ninjacocovi 4 หลายเดือนก่อน +6

      ⁠​⁠@@llowotvyou don’t get that poop is the acronym of Python Object Oriented Programming?

    • @BroCodez
      @BroCodez  4 หลายเดือนก่อน +34

      I'm glad I could help you with your poop

  • @i_help_strangers
    @i_help_strangers 4 หลายเดือนก่อน +9

    Aww man the title got me dying 😂

  • @BraveRanger-r7z
    @BraveRanger-r7z 3 หลายเดือนก่อน +2

    Thank u so much for this amazing content 🎉

  • @Greenbay-bn3yk
    @Greenbay-bn3yk 4 หลายเดือนก่อน +1

    Please bro, We want a tutorial : Algorithms and Data Structures using Python

    • @realm9007
      @realm9007 4 หลายเดือนก่อน

      me too

  • @phillipkantunda1632
    @phillipkantunda1632 4 หลายเดือนก่อน

    Thank you so much for this , can we have questions like homework for every lesson?

  • @kazi_goni
    @kazi_goni 2 หลายเดือนก่อน

    Love the way you teach...

  • @vallunacoder.wecodetogether
    @vallunacoder.wecodetogether 4 หลายเดือนก่อน

    I''m not learning python but I really loved your videos. I just did the html one and the Javascript one! I was wondering which one should I do next ?? SHOULD I learn read ?? or Java or should I learn about data bases ? I WOULD love to hear your advice! Greeting from Colombia!

    • @SamahRizwana
      @SamahRizwana 3 หลายเดือนก่อน

      You should try out CSS

  • @celshante1769
    @celshante1769 4 หลายเดือนก่อน

    i thought this was a random meme video but instead itsa blessing of Bro xD nice

  • @myJapanTV013
    @myJapanTV013 3 หลายเดือนก่อน

    Nicely explained ❤

  • @PetrusKaua
    @PetrusKaua 3 หลายเดือนก่อน

    que editor de códigos é esse?

  • @kemaketseforkssebitiela3089
    @kemaketseforkssebitiela3089 11 วันที่ผ่านมา

    I dont understand what (self)is for

  • @wolftube5793
    @wolftube5793 3 หลายเดือนก่อน

    Even though I am not interested ın Python but I found myself clicking on the video bcz of the title🗿

  • @luisladino6162
    @luisladino6162 3 หลายเดือนก่อน

    Thanks bro

  • @nixgen01
    @nixgen01 4 หลายเดือนก่อน

    best guy

  • @juststig2735
    @juststig2735 หลายเดือนก่อน

    I can understand with the title why people wont use this instead of json

  • @liege4958
    @liege4958 3 หลายเดือนก่อน

    Asmangold streaming room 😂

  • @navtektv
    @navtektv 2 หลายเดือนก่อน

    I can definitely poop in 12 minutes.

  • @pyroclastic8924
    @pyroclastic8924 4 หลายเดือนก่อน

    everyone remember to thank brocode for showing us his poop

  • @zom4275
    @zom4275 4 หลายเดือนก่อน +3

    Hi bro code can u upload a full course of cyber security? Please

  • @IGCSENERD-up6yv
    @IGCSENERD-up6yv 4 หลายเดือนก่อน +5

    I want you to comprehend the amount of times I was getting confused before this man came to the scene, I am very grateful of this man and his channel!

  • @elcapitanodeltimbuktu1O1sir
    @elcapitanodeltimbuktu1O1sir 4 หลายเดือนก่อน +1

    Some People Say Python is Shit Language😂
    But For Now Python Saved By Ai 😂
    Btw If Newbie Don't Know What Is SELF
    "self" is same as "this" In Js,java
    But In Js & Java You Don't Need To Pass Keyword "this" To Identify Its Object

  • @SabonaMarara
    @SabonaMarara 4 หลายเดือนก่อน +5

    i like your video always thanks sir

  • @Johnvids-g3o
    @Johnvids-g3o 5 วันที่ผ่านมา

    POOP
    P(ython)
    O(bject)
    O(riented)
    P(rograming)
    Please don't reply with snarky text!

  • @Kenayi22
    @Kenayi22 3 วันที่ผ่านมา

    I think I finally found my perfect Python prof on TH-cam. You're a star bro

  • @Reihner78
    @Reihner78 หลายเดือนก่อน +1

    0:18 seeing Asmongold's room just gave me whiplash for how it came out, out of left field. Never thought I would see it referred like this in my learning journey

  • @afgfuturetube
    @afgfuturetube 4 หลายเดือนก่อน +1

    Thanks alot would you explaining the difference of software engineer and software developer and programmer

  • @Wolfiestein
    @Wolfiestein 5 วันที่ผ่านมา

    is the picture from 00:19 is Asmongold´s room ?

  • @shorty4174
    @shorty4174 4 หลายเดือนก่อน +1

    Bro put a picture of his room

  • @samtheking5759
    @samtheking5759 2 หลายเดือนก่อน

    thank you, with this video i learnt how to shit- UHH I MEAN i learnt how to use objects and classes... yeah...

  • @PowerGumby
    @PowerGumby 19 วันที่ผ่านมา

    is there efficient way to do POOPing

  • @pistondev2204
    @pistondev2204 หลายเดือนก่อน

    Thank you brocode it always took me 20 mins but because of this video I can finally poop in 12 minutes...just kidding thanks for upload will surely learn oops from here❤

  • @JeanneKenna-k8i
    @JeanneKenna-k8i 11 วันที่ผ่านมา

    Walker Kenneth Jackson Lisa Garcia Barbara

  • @akhrorsadirov
    @akhrorsadirov 9 วันที่ผ่านมา

    thank you for the lessons bratha !

  • @illmatic_2
    @illmatic_2 4 หลายเดือนก่อน +1

    Can you create an android tutorial?

  • @WillTutoriaiss
    @WillTutoriaiss หลายเดือนก่อน +1

    Best it Teacher of all time !

  • @ChrisKoledrianos
    @ChrisKoledrianos 4 หลายเดือนก่อน +2

    nice

  • @bim282
    @bim282 4 หลายเดือนก่อน

    POOP 💀💀

  • @Sav2Swindle
    @Sav2Swindle 3 หลายเดือนก่อน

    pls type hinting 4 python

  • @saaransh01
    @saaransh01 2 หลายเดือนก่อน +1

    Awesome and simplified explanation....

  • @JEEVISAKTHI-pe8hr
    @JEEVISAKTHI-pe8hr 4 หลายเดือนก่อน +1

    Bro one like for your fellow bro

  • @HungryBen-d7y
    @HungryBen-d7y 3 หลายเดือนก่อน

    easyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

  • @shreehari2589
    @shreehari2589 4 หลายเดือนก่อน

    Thanks for teaching us about the Poop

  • @Abinav777
    @Abinav777 4 หลายเดือนก่อน +1

    Thank you so much bro❤

  • @Zero-Dev64
    @Zero-Dev64 4 หลายเดือนก่อน +1

    Thank you bro ❤

  • @rishusingh1995
    @rishusingh1995 4 หลายเดือนก่อน +1

    nice. video sir

  • @tioalex-px
    @tioalex-px 4 หลายเดือนก่อน

    TypeScript please!!!
    And NodeJS & ExpressJS

  • @kedarppopuri2776
    @kedarppopuri2776 4 หลายเดือนก่อน

    Bro please make videos for python socket programming please

  • @Progs420
    @Progs420 หลายเดือนก่อน

    Hahaha is that asmon's room? 0:18 😅
    That car def has class, innit?

  • @jamesgig464
    @jamesgig464 หลายเดือนก่อน

    You're a real Bro Codez and the real deal for teaching code for easy comprehension!👏👏👏

  • @aashishkandel197
    @aashishkandel197 4 หลายเดือนก่อน

    Add these videos to your python paylist bro. It'll be easier for me to watch them all

  • @RakibHasan-hs1me
    @RakibHasan-hs1me 3 หลายเดือนก่อน

    U can't use OOP?

    • @HungryBen-d7y
      @HungryBen-d7y 3 หลายเดือนก่อน

      thats OOP. there is more in it. its just beginning.

  • @MullaKejruddin701
    @MullaKejruddin701 4 หลายเดือนก่อน

    Thanks for uploading. Never stop uploading because we will really miss you. You changed so many lives. I'm always eager to see more of you, no matter whatever the course is. Cover as many languages and frameworks you can. Good luck.👍😃

  • @CompraMais4
    @CompraMais4 4 หลายเดือนก่อน

    I was just watching my teacher teach this and thought it was too hard and I should watch Bro Code teach it.
    For my surprise, its only been 6 hours. I'll edit how well I learned this after I watched it.
    Edit: It was way easier than it initially looked like. Bro Code teaching rly well as always

  • @mohamedcoufi9873
    @mohamedcoufi9873 3 หลายเดือนก่อน

    I hit like even befor I watch the video😊.. Thanks a bunch.

  • @C4ManMike
    @C4ManMike 4 หลายเดือนก่อน

    Lol a shot of asmongolds beadroom

  • @PoPo-jg9nt
    @PoPo-jg9nt 4 หลายเดือนก่อน

    Next.js tutorial Bro ?

  • @nobeltnium
    @nobeltnium 3 หลายเดือนก่อน

    subbed!

  • @jimsvolt
    @jimsvolt 4 หลายเดือนก่อน

    You are an absolutely gold gem❤

  • @raviel_0422
    @raviel_0422 4 หลายเดือนก่อน

    You are back! Its a good day today.

  • @Amrhoops096
    @Amrhoops096 4 หลายเดือนก่อน

    Can you do raylib?

  • @intotheuniverse9170
    @intotheuniverse9170 4 หลายเดือนก่อน

    hi

  • @Dex-uq8ff
    @Dex-uq8ff 4 หลายเดือนก่อน

    One day programming is going to be taken over by Ai and coding would be useless by then... but learning them is great for own use.

    • @zohaibwaris-q8x
      @zohaibwaris-q8x หลายเดือนก่อน

      The problem solving skills one can learn through programing can be applied to various aspects life. Top programers will remain unaffected for longer period. I think it's worth learning you are really into it

  • @Siteit.company
    @Siteit.company 4 หลายเดือนก่อน

    amazing tutorials

  • @perfektyoutube9757
    @perfektyoutube9757 3 หลายเดือนก่อน

    Thanks for the video and your help