Functions in Python are easy 📞

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

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

  • @BroCodez
    @BroCodez  2 ปีที่แล้ว +195

    # ---------- EXAMPLE 1 ----------
    def display_invoice(username, amount, due_date):
    print(f"Hello {username}")
    print(f"Your bill of ${amount:.2f} is due: {due_date}")
    # display_invoice("BroCode", 42.50, "01/01")
    # display_invoice("JoeSchmo", 100.01, "01/02")
    # ---------- EXAMPLE 2 ----------
    def create_name(first, last):
    first = first.capitalize()
    last = last.capitalize()
    return first + " " + last
    full_name = create_name("spongebob", "squarepants")
    print(full_name)

  • @TheGeekosDen
    @TheGeekosDen 2 ปีที่แล้ว +448

    No credit card, no bullshit, straight to the point. Impressed.

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

      Man you be on the corn hub too much

    • @sanchitdangwal8950
      @sanchitdangwal8950 6 หลายเดือนก่อน +7

      169 likes and no comments? lemme fix that.

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

      @@sanchitdangwal8950 😐

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

      Yea

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

      @@sanchitdangwal8950 🤡🤡🤡🤡🤡🤡🤡🤡🤡

  • @brysontrotman5865
    @brysontrotman5865 ปีที่แล้ว +499

    I got more out of a 10 minute video than three weeks of my college course! This cleared so much stuff up for me!

    • @skyycodes
      @skyycodes ปีที่แล้ว +1

      hey, what do u take in ur course?

    • @TrajonJeter
      @TrajonJeter ปีที่แล้ว +33

      Your like the 20th person in college I’ve seen make a comment like that. I’m not going to college it seems like TH-cam university is good enough

    • @brysontrotman5865
      @brysontrotman5865 ปีที่แล้ว

      @@TrajonJeter unfortunately jobs like seeing that you have a piece of paper on your resume. While I'm sure someone is going to see this and comment how the got a programming job in three months after they read the first page of a Python book, for the most part Jobs require it

    • @lorna_ovlov240
      @lorna_ovlov240 ปีที่แล้ว +7

      yea same... I understood it ride away and it was on point. Our teacher is just so confusing when he is explaining stuff

    • @Well55541
      @Well55541 ปีที่แล้ว +4

      I feel you

  • @radiantthoughts8718
    @radiantthoughts8718 ปีที่แล้ว +233

    I was bro years old when I learned how to make a Python function. Thanks for the informative video!

  • @SomethingGood10
    @SomethingGood10 2 ปีที่แล้ว +128

    TH-cam algorithm should show this type of good content more often

    • @Notthetylor
      @Notthetylor 2 ปีที่แล้ว +9

      Just sub to them. My whole page is only codes);

    • @angryman9333
      @angryman9333 2 ปีที่แล้ว +2

      My notifications are only coding videos

    • @smaransure2234
      @smaransure2234 2 ปีที่แล้ว +2

      then sub

    • @siyabonganxumalo4574
      @siyabonganxumalo4574 2 ปีที่แล้ว +2

      You need to hit the LIKE button.

    • @darrenfrancis8126
      @darrenfrancis8126 ปีที่แล้ว

      @zssllayers1946 unsub from them and start clicking and subbing on tech videos

  • @SarmK
    @SarmK 2 ปีที่แล้ว +325

    underated content

    • @jokeguy5946
      @jokeguy5946 2 ปีที่แล้ว

      True

    • @d4tto92
      @d4tto92 2 ปีที่แล้ว

      Yeah Mr. White

    • @SarmK
      @SarmK ปีที่แล้ว +1

      @zssllayers1946 right now i realised 💀

    • @ja_artist_dem5133
      @ja_artist_dem5133 ปีที่แล้ว

      Fa real

    • @rafiahmedsyed8683
      @rafiahmedsyed8683 ปีที่แล้ว

      Mr White this is not Chemistry, please take Science seriously

  • @mihailomilenkovic6382
    @mihailomilenkovic6382 ปีที่แล้ว +24

    This guy does magic. My grades are all time high since i started watching these

  • @benwilliams1889
    @benwilliams1889 24 วันที่ผ่านมา +2

    You explain things better in 10 mins than I learn in a day studying from university materials.

  • @xzex2609
    @xzex2609 2 ปีที่แล้ว +71

    no matter how advance I am now thanks to you , I always enjoy your videos. there always have some details that you learn. Gold bless you , you can not imagine how you help people.

    • @watermelonkfc
      @watermelonkfc ปีที่แล้ว +4

      And he donates most of what he earns to charity

    • @recursion.
      @recursion. ปีที่แล้ว

      @@watermelonkfc Charities are scam with full of incompetent time wasting people, I wish he used it for himself and his family and friends.

  • @Dreamer12390
    @Dreamer12390 6 วันที่ผ่านมา

    You might just be the best tutor on TH-cam. Simple energetic and precise
    Thank you

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

    Amazing. Functions/arguments/parameters was a 3-hour long reading + video in my online Python class and I was so confused. My ADHD canNOT process so many words because I think all of them have equal importance. This, on the other hand, is absolutely amazing. Clear, concise, everything makes sense. THANK YOU SO MUCH!!!

  • @86ddmorales1
    @86ddmorales1 ปีที่แล้ว +16

    Clear, simple, easy. Nicely done! Keep it up!

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

    This is honestly the best explanation I've heard yet. Really great and super simple! Great job 👏 ❤

  • @manipurihunabopa
    @manipurihunabopa ปีที่แล้ว +34

    No AI or any Robot can ever teach so explicitly like you Bro Code! You're an amazing teacher. I'd like to see a picture of your

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

      but can teach very complex tasks. I can program an entire website with color schemes by just telling ChatGPT to do it for me. It can also show you how to interact with databases with any language; pretty cool if you ask me.

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

      a picture of his what?

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

      ☠️

    • @dualitygaming5769
      @dualitygaming5769 21 วันที่ผ่านมา

      ​@@jakethesnakemiz3645his

  • @pienipupu
    @pienipupu 2 ปีที่แล้ว +43

    straight to the point, great explanation and good video length
    keep it up man

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

    By far the best explanation on Functions! Straight to the point!

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

    Wow! The best explanation so far within just few minutes! Thanks!

  • @pumpxrs1805
    @pumpxrs1805 13 วันที่ผ่านมา

    Straight to the point and concise. Gotta love it🙌🏽

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

    Straight to the point! No beating around the bush. It's as clear as a Windows 11 screen. Thank you and subscribed!

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

    PhD professors couldn't teach me in 4 months what you just did in 11mins. Thank you is an understatement for what I wanna express.

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

    This is by far the best explanation of functions I have ever come across. Thank you so much!

  • @Shabbar3
    @Shabbar3 ปีที่แล้ว +2

    Dude. You are the shit. That was incredibly well spoken and actually landed in my brain stem properly. Love you dawg

  • @100animations8
    @100animations8 ปีที่แล้ว +13

    Great work, this tutorial is so clear & understandable.

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

    Great job. Can't wait to get into some of the other videos. Very well presented!

  • @KaveeshaKaralliyadda
    @KaveeshaKaralliyadda 6 วันที่ผ่านมา

    Literally the best python explanation that I've ever heard so far!! Thank u! 🎉

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

    Dude, it was a really useful video because the teacher explained it in my own language (Turkish) and went through this topic without any explanation. Thanks to you, I understood the logic of "return".

  • @type-dev
    @type-dev 3 หลายเดือนก่อน +1

    Bro I’m learning coding for my future career, and this is the best channel I’ve seen! I’ve able to use to clarify some things and understand things better. Thank you!

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

    literally the best video, couldn't really understand functions before but after watching this video i would say "functions in python are definitely easy" :)

  • @user-xg9tv4vu3k
    @user-xg9tv4vu3k 6 หลายเดือนก่อน

    This video is invaluable!!! THANK YOU SO MUCH. I am a beginner in Python and in an MS. Data Analytics program and this was SO HELPFUL. Also love how you give back to charities instead of keeping the money for yourself. Shows your integrity and thoughtfulness as a person.

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

    I really apprecate your way of teaching👍

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

    You are the first person I've found that's actually helpful. Thanks for the videos, you do a great job.

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

    Helped me a ton with my first functions assignment man! Thanks big time. I'll be coming back to your page for tips in the future for sure.

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

    "I think of parentheses as a pair of telephones talking to each other"
    I love on point analogies like this. It just helped me link so many things together with one good analogy.

  • @mawaddahmusthafa3634
    @mawaddahmusthafa3634 25 วันที่ผ่านมา

    I'm so glad i came across your channel. Your contents are amazing! Very detailed and even someone from zero IT background can learn and understand! Thank you!

  • @Scott-hy3gs
    @Scott-hy3gs ปีที่แล้ว +3

    One video substituted a 30-page lecture, 🔥thank you

  • @lord-ks7yp
    @lord-ks7yp 28 วันที่ผ่านมา

    It took me 4 years of studying in IoT school just to understaand how functions and so far only Bro Code explained it in a way that makes sense. Thanks bro.

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

    for a nubie like me this is excellent content! Blessings Sir.

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

    My type of teacher. Simple and plain. Awesome job bro ✊

  • @muhammadahsanali-pq1er
    @muhammadahsanali-pq1er 2 หลายเดือนก่อน +2

    one of the best videos ive ever seen\
    thank you!!!!!!!

  • @MarquezJohnson-ih9bq
    @MarquezJohnson-ih9bq ปีที่แล้ว +7

    Bro explains functions better than my professor 😭

  • @AiWithDanish
    @AiWithDanish ปีที่แล้ว

    Very easy way to convey difficult concept. Thanx

  • @MuhammadJamalAsadi-rv3od
    @MuhammadJamalAsadi-rv3od 7 หลายเดือนก่อน

    I am Beginner in Python Thanks a lot from your easy videos Bro Code!
    keep it up!

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

    I go to an ivy league school and I am here because you explain things better than my professor does. Thank you so much!!!

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

    You literally taught me more in 10minutes than my lecturer taught me in 10 hours

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

    bro, you literally saved my life. thankyousomuch!!!

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

    bro you are a lifesaver, it is so much simpler watching than reading

  • @GhostGaming-tt9tu
    @GhostGaming-tt9tu 2 หลายเดือนก่อน

    Youre not only helping me through university but also my other classmate. Love the good work. You live up to your name!

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

    Short and simple. I love it! I couldn't understand the concept, but thanks to your vid, I understood it!

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

    So concise and straight to the point. Thank you!

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

    WOW! THANK YOU THANK YOU! Gonna sub to your channel. I was hitting my head against the wall trying to understand how functions worked. This really adds clarity in such a user friendly format. I am now a 'Bro Code' Subscriber Disciple!

  • @martynau3587
    @martynau3587 ปีที่แล้ว +4

    Wow this tutorial is so easy to understand it's incredible!! Thank you so much

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

    I started learning Python today, didn‘t understand functions at all, this vid was a life saver fr, thank you so much man

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

    Wow, this is a great video! Nice and simple explanation! All tutorials should be like this!
    I've seen other videos with so complicated explanation of basic Python features and makes learning it so hard.

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

    Your explanations are so clear and understandable, just perfect. Thank u Bro!

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

    thanks you made it easy to understand, you gain a learner form India

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

    If you wanted to loop it the many times you want it to repeat but it is too much to copy & paste, you could make a ‘loop’ parameter to your function:
    def your_func(loop):
    # Do what you want to do one time …
    for _ in range(loop):
    # Add built-in or module/packages functions …
    That’s an example using the ‘loop’ parameter.
    To run it:
    your_func(3)
    On the console it will do whatever you put in there.
    Hope that helps you run it 1000 times 😮

  • @abdullahinadif6516
    @abdullahinadif6516 ปีที่แล้ว +3

    Thank you so much , i didn't grasp the difference between "return" and "print" , but you made it easy in this video

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

    Learning this this week in class. Nice video

  • @requiemholder1746
    @requiemholder1746 24 วันที่ผ่านมา

    Thank for you for making this video it was very easy to understand as a beginner

  • @sandrostupid7602
    @sandrostupid7602 ปีที่แล้ว

    brocode im now learning a python and you changed my life you are real bro

  • @stevendumont4156
    @stevendumont4156 ปีที่แล้ว +1

    Just awesome Bro. You make learning functions easy to understand in Python

  • @SubashShrestha-s8p
    @SubashShrestha-s8p 6 หลายเดือนก่อน +1

    Thank you bro, you made me understand in easy way.🎉🎉🎉🎉

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

    crazy how this 10 minute video taught me more than my profs 3 hour lecture who just read off of powerpoint slides

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

    Best coding videos on TH-cam 👍✌️

  • @DillonHicks-ph8hy
    @DillonHicks-ph8hy 7 หลายเดือนก่อน

    Explained it better than a college professor.

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

    I'm not only learning functions today. I'm also learning that the teacher REALLY MATTERS, it was like u were chewing the knowledge and giving it to me. I feel like I could learn law, chemistry or some shit (I just have to choose the right teacher) THANKS MAN

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

    This is very clearly explained, thank you.

  • @JohnCena-rf2lw
    @JohnCena-rf2lw 3 หลายเดือนก่อน

    that was awesome! u explained it way better that david in cs50p. i feel way more comfortable with the concept after watching this. thanx man!!

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

    I fucking love you Bro i understood functions in ten minutes rather than 2 weeks in my college. i owe you alot

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

    Thank you so much for the easy to understand explanation. Appreciate it!

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

    wow this 10 minutes just cleared up more for me than a few hours in the Python section of Google's Cybersecurity course.

  • @Laura-iv7fm
    @Laura-iv7fm ปีที่แล้ว

    def calculate_paint_needed(width, depth, height):

    numberofliters=((width*height)*2 + (depth*height)*2)/7

    numberofliters=round(numberofliters,1)

    liters= f"{numberofliters} liters of paint are needed"



    return liters

  • @pirunnyrkki518
    @pirunnyrkki518 ปีที่แล้ว +1

    This video has helped me understand such basic stuff that i could not wrap my head around, thank you.

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

    your a really good teacher.

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

    Bro are you a god ? best channel I have seen for learning coding you literally covered the whole concept in 10 minutes

  • @buster12322
    @buster12322 2 ปีที่แล้ว +3

    Im at lesson 47 can't believe how much I learned lol
    Love you for real

    • @profyle766
      @profyle766 2 ปีที่แล้ว

      Same...wish he was around back in the days, but of course that's the beauty of the net.. if you can find that person who can break it down nice and deliver like Bro.

  • @PhrontDoor
    @PhrontDoor ปีที่แล้ว

    Well and succinctly presented. Thanks for sharing.

  • @b.nidhish4491
    @b.nidhish4491 9 หลายเดือนก่อน

    Thanks to this video it clears all my doubts

  • @KatjaVestergaard-h4e
    @KatjaVestergaard-h4e 11 หลายเดือนก่อน +1

    Хорошая рабочая связка Спасибо

  • @_uriah_
    @_uriah_ 22 วันที่ผ่านมา

    Wow! Very helpful tutorial!

  • @dawsonkoch4992
    @dawsonkoch4992 28 วันที่ผ่านมา

    Great video I took a course and did not understand functions but now I do

  • @theworld4156
    @theworld4156 ปีที่แล้ว

    I am never looking at another tutorial youtuber again after finding you

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

    You are the Best Bro i learn more programming on you , than on my college

  • @nikosvasilopoulos5540
    @nikosvasilopoulos5540 8 วันที่ผ่านมา

    You are the best Bro! Great explanation!

  • @miguellobo4841
    @miguellobo4841 ปีที่แล้ว

    If someday I get my programmer job, trust me, I will come back to this channel to thank you, it may be many years, but if I get this job, thanks Bro Code ❤

  • @TranBinh123-k6e
    @TranBinh123-k6e 11 หลายเดือนก่อน +1

    this is very useful thank you very much

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

    I can't thank you enough...this is going to be my saved video for lifetime...
    P.S. you got a sub

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

    tks from Brazil, the best that we got in youtube

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

    Thanks so much. This should blow up more

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

    TY ive been stuck on functions for so long i try avoiding them... no more of that thankfully

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

    Bro, you helped me a lot, thank you. I'm not a native English speaker and I started to do a Harvard course recently. in the python subject, I was shocked with these functions, I did not understand why we use "def", because in python is "function". I know the name of the functionalities can change, but it wasn't so obvious at the first contact with the course.

  • @wamimuswamimus3496
    @wamimuswamimus3496 ปีที่แล้ว +1

    so far, this is the best video that helped me to understand def python command."
    I wish you you uploading move tutorial videos that explain in detail the concept of linking between argument and parameter and the logic behind it or how python picks those command and link them throughly.
    one thing I do not understand in this video is the "f" concept, when I've erased the answer that was gives is 4.1e1 instead of 42.5

  • @ladyole9291
    @ladyole9291 ปีที่แล้ว

    You made learning fun for me never quit youtube

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

    My teacher taught me everything in python but thanks guy that was very helpful. I can. Understand it better

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

    Un vídeo muy conciso y explicativo 👌

  • @kapibara2440
    @kapibara2440 ปีที่แล้ว +1

    Great, great content from the Bro🎉

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

    awesome video you made this so much easier to understand so thx

  • @noone6706
    @noone6706 24 วันที่ผ่านมา

    You deserves a billion likes my bro😎✨️

  • @tinykitchen-us2eh
    @tinykitchen-us2eh 3 หลายเดือนก่อน +1

    It's really cool. ❤

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

    Found that define function hard while doing cs50p, but u made it so easy and simple, thanks Bro. Subscribed.