Functions in Python are easy 📞

  Рет қаралды 376,872

Bro Code

Bro Code

Күн бұрын

#python #tutorial #course
00:00:00 functions
00:01:49 arguments
00:04:28 exercise #1
00:06:12 return
00:08:27 exercise #2
00:10:08 conclusion
--------- 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/02")
display_invoice("JoeSchmo", 100.99, "02/03")
--------- 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)

Пікірлер: 300
@BroCodez
@BroCodez Жыл бұрын
# ---------- 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)
@Shohjahon149
@Shohjahon149 Жыл бұрын
Hello,when will you make node.js tutorial?
@smaransure2234
@smaransure2234 Жыл бұрын
straight to the point
@fatimasaeed2705
@fatimasaeed2705 Жыл бұрын
Thanks
@fatimasaeed2705
@fatimasaeed2705 Жыл бұрын
We need more examples please 🥺
@rabiabatool1335
@rabiabatool1335 6 ай бұрын
what does f mean before the double quote
@TheGeekosDen
@TheGeekosDen Жыл бұрын
No credit card, no bullshit, straight to the point. Impressed.
@momsspaghetti21
@momsspaghetti21 3 ай бұрын
Man you be on the corn hub too much
@brysontrotman5865
@brysontrotman5865 7 ай бұрын
I got more out of a 10 minute video than three weeks of my college course! This cleared so much stuff up for me!
@paxy3877
@paxy3877 7 ай бұрын
hey, what do u take in ur course?
@user-ct7jc4dp9h
@user-ct7jc4dp9h 6 ай бұрын
Your like the 20th person in college I’ve seen make a comment like that. I’m not going to college it seems like KZfaq university is good enough
@brysontrotman5865
@brysontrotman5865 6 ай бұрын
@@user-ct7jc4dp9h 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 6 ай бұрын
yea same... I understood it ride away and it was on point. Our teacher is just so confusing when he is explaining stuff
@Heitor55541
@Heitor55541 6 ай бұрын
I feel you
@radiantthoughts8718
@radiantthoughts8718 11 ай бұрын
I was bro years old when I learned how to make a Python function. Thanks for the informative video!
@mishakafauzul
@mishakafauzul 5 ай бұрын
😂😂
@steadfastgamer
@steadfastgamer 18 күн бұрын
omg me too XD
@SarmK
@SarmK Жыл бұрын
underated content
@jokeguy5946
@jokeguy5946 Жыл бұрын
True
@d4tto92
@d4tto92 Жыл бұрын
Yeah Mr. White
@SarmK
@SarmK Жыл бұрын
@zssllayers1946 right now i realised 💀
@ja_artist_dem5133
@ja_artist_dem5133 11 ай бұрын
Fa real
@rafiahmedsyed8683
@rafiahmedsyed8683 10 ай бұрын
Mr White this is not Chemistry, please take Science seriously
@storm.5252
@storm.5252 Жыл бұрын
KZfaq algorithm should show this type of good content more often
@Notthetylor
@Notthetylor Жыл бұрын
Just sub to them. My whole page is only codes);
@angryman9333
@angryman9333 Жыл бұрын
My notifications are only coding videos
@smaransure2234
@smaransure2234 Жыл бұрын
then sub
@siyabonganxumalo4574
@siyabonganxumalo4574 Жыл бұрын
You need to hit the LIKE button.
@darrenfrancis8126
@darrenfrancis8126 Жыл бұрын
@zssllayers1946 unsub from them and start clicking and subbing on tech videos
@86ddmorales1
@86ddmorales1 Жыл бұрын
Clear, simple, easy. Nicely done! Keep it up!
@xzex2609
@xzex2609 Жыл бұрын
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 6 ай бұрын
And he donates most of what he earns to charity
@recursion.
@recursion. 5 ай бұрын
@@watermelonkfc Charities are scam with full of incompetent time wasting people, I wish he used it for himself and his family and friends.
@cherry.x_3806
@cherry.x_3806 3 ай бұрын
This is honestly the best explanation I've heard yet. Really great and super simple! Great job 👏 ❤
@mihailomilenkovic6382
@mihailomilenkovic6382 11 ай бұрын
This guy does magic. My grades are all time high since i started watching these
@shine2577
@shine2577 8 күн бұрын
You are the first person I've found that's actually helpful. Thanks for the videos, you do a great job.
@user-xg9tv4vu3k
@user-xg9tv4vu3k Күн бұрын
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.
@100animations8
@100animations8 Жыл бұрын
Great work, this tutorial is so clear & understandable.
@pienipupu
@pienipupu Жыл бұрын
straight to the point, great explanation and good video length keep it up man
@martynau3587
@martynau3587 Жыл бұрын
Wow this tutorial is so easy to understand it's incredible!! Thank you so much
@josephcraig7477
@josephcraig7477 3 ай бұрын
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.
@abdullahinadif6516
@abdullahinadif6516 Жыл бұрын
Thank you so much , i didn't grasp the difference between "return" and "print" , but you made it easy in this video
@techwithdipufrom0ton621
@techwithdipufrom0ton621 Жыл бұрын
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 4 ай бұрын
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.
@pirunnyrkki518
@pirunnyrkki518 Жыл бұрын
This video has helped me understand such basic stuff that i could not wrap my head around, thank you.
@55867171
@55867171 7 күн бұрын
So concise and straight to the point. Thank you!
@robroszk
@robroszk 3 ай бұрын
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!
@Shabbar3
@Shabbar3 6 ай бұрын
Dude. You are the shit. That was incredibly well spoken and actually landed in my brain stem properly. Love you dawg
@svbion
@svbion 4 ай бұрын
My type of teacher. Simple and plain. Awesome job bro ✊
@PhrontDoor
@PhrontDoor 7 ай бұрын
Well and succinctly presented. Thanks for sharing.
@MarquezJohnson-ih9bq
@MarquezJohnson-ih9bq 7 ай бұрын
Bro explains functions better than my professor 😭
@globaldatascience
@globaldatascience 11 ай бұрын
Very easy way to convey difficult concept. Thanx
@stevendumont4156
@stevendumont4156 11 ай бұрын
Just awesome Bro. You make learning functions easy to understand in Python
@be236
@be236 Ай бұрын
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.
@Best_Editz177
@Best_Editz177 Күн бұрын
I really apprecate your way of teaching👍
@tnr1337
@tnr1337 3 ай бұрын
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".
@wamimuswamimus3496
@wamimuswamimus3496 Жыл бұрын
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
@clivemcpike3065
@clivemcpike3065 2 ай бұрын
bro, you literally saved my life. thankyousomuch!!!
@chillwavemusic5024
@chillwavemusic5024 6 ай бұрын
My appreciation Bro! Your lessons as simple as valuable!
@MuhammadJamalAsadi-rv3od
@MuhammadJamalAsadi-rv3od 28 күн бұрын
I am Beginner in Python Thanks a lot from your easy videos Bro Code! keep it up!
@johnsally8320
@johnsally8320 Жыл бұрын
Bro, you're awesome. Thank you so so much!
@erandreella2926
@erandreella2926 7 ай бұрын
There's a language (or dialect) barrier going on in my college but thanks to you, you taught me a lot not to mention that this video is free, thanks.
@Scott-hy3gs
@Scott-hy3gs 7 ай бұрын
One video substituted a 30-page lecture, 🔥thank you
@scottjeffery4583
@scottjeffery4583 Ай бұрын
That's very helpful...Thanks Bro.
@balaportejean7015
@balaportejean7015 Ай бұрын
So clear Thank you so much
@cestlaviemarquez
@cestlaviemarquez 2 ай бұрын
tks from Brazil, the best that we got in youtube
@gamisr2848
@gamisr2848 3 ай бұрын
Learning this this week in class. Nice video
@thehorcrux1138
@thehorcrux1138 Ай бұрын
Thanks so much. This should blow up more
@Etoxysia
@Etoxysia 11 ай бұрын
Thank you so much! this is so easy to understand!!!
@Thinkerfre
@Thinkerfre 4 ай бұрын
Your videos are great tf❤
@ramirez368
@ramirez368 2 ай бұрын
simply amazing....
@JosephPassi
@JosephPassi 2 ай бұрын
Thank you so much for the easy to understand explanation. Appreciate it!
@kapibara2440
@kapibara2440 7 ай бұрын
Great, great content from the Bro🎉
@TeferiHagos
@TeferiHagos 11 ай бұрын
You're an amazing teacher.
@meetbhutada248
@meetbhutada248 2 күн бұрын
Thanks For teaching this lil bro
@htg7127
@htg7127 Жыл бұрын
You are the best teacher ever!!!
@sandrostupid7602
@sandrostupid7602 10 ай бұрын
brocode im now learning a python and you changed my life you are real bro
@adrianarreguin1739
@adrianarreguin1739 Жыл бұрын
Your channel is a godsend!
@nonsorene1551
@nonsorene1551 Жыл бұрын
Really love you Bro Code. I wish you could do a video on some backend frame work like Django
@rext2861
@rext2861 Күн бұрын
Bro are you a god ? best channel I have seen for learning coding you literally covered the whole concept in 10 minutes
@jasonhammerle3582
@jasonhammerle3582 11 ай бұрын
Nice! Makes perfect sense!
@tariqferoz5581
@tariqferoz5581 Ай бұрын
This is very clearly explained, thank you.
@abyansh7073
@abyansh7073 Жыл бұрын
you have no idea how much you help me !!!!!!!
@psychehedelic
@psychehedelic 4 ай бұрын
THANK YOU SO SO MUCH FOR THISSS
@for-ever-22
@for-ever-22 9 ай бұрын
Bro you’re amazing!!!
@kopilkaiser8991
@kopilkaiser8991 Жыл бұрын
I watch you regularly. I learn a lot from your videos
@user-wh7st7hc2e
@user-wh7st7hc2e 5 ай бұрын
Хорошая рабочая связка Спасибо
@ramonbarajas2258
@ramonbarajas2258 9 ай бұрын
The way you explain helps alot
@binheptrai2k10nhuccainach3
@binheptrai2k10nhuccainach3 5 ай бұрын
this is very useful thank you very much
@b.nidhish4491
@b.nidhish4491 3 ай бұрын
Thanks to this video it clears all my doubts
@GamingAngelx
@GamingAngelx 3 ай бұрын
As a student you made so much more sense then my instructor thank you
@explorster
@explorster 3 ай бұрын
Best coding videos on KZfaq 👍✌️
@arpitflow9
@arpitflow9 3 ай бұрын
thanks you made it easy to understand, you gain a learner form India
@imashvyn
@imashvyn 7 ай бұрын
Absolutely great❤
@clebersouza5428
@clebersouza5428 23 күн бұрын
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.
@filipevasconcelos4409
@filipevasconcelos4409 10 ай бұрын
Absolutely baller video for a newbie like me. Absolutely marvelous
@mohamad_subhi
@mohamad_subhi 3 ай бұрын
really loved you 😊😊
@Sunwireless12
@Sunwireless12 8 ай бұрын
I love ur videos!
@ladyole9291
@ladyole9291 Жыл бұрын
You made learning fun for me never quit youtube
@hassansyed6087
@hassansyed6087 21 күн бұрын
"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.
@friedtofu6897
@friedtofu6897 9 ай бұрын
great tutorial thank you
@ROLKISSSSSS
@ROLKISSSSSS 2 ай бұрын
Just got new sub here. Good content
@O_io6
@O_io6 7 ай бұрын
God Bless You, Mate you helped me so so much.
@user-bi6ie4ct6o
@user-bi6ie4ct6o 5 ай бұрын
Good job. Thx Bro Code!
@kaemiche7311
@kaemiche7311 5 ай бұрын
You explained this perfectly.
@fouadanabosi2858
@fouadanabosi2858 Ай бұрын
I fucking love you Bro i understood functions in ten minutes rather than 2 weeks in my college. i owe you alot
@DillonHicks-ph8hy
@DillonHicks-ph8hy Ай бұрын
Explained it better than a college professor.
@Teenthriveforever123
@Teenthriveforever123 5 күн бұрын
thanks you so much i am more than impressed Got straight to the point without yappping for 30 mins revision is way easier know.Thanks alot
@nathan8464
@nathan8464 5 ай бұрын
You literally taught me more in 10minutes than my lecturer taught me in 10 hours
@user-qv6eu1qi7w
@user-qv6eu1qi7w 7 ай бұрын
Thank you bro you are wonderful
@miguellobo4841
@miguellobo4841 7 ай бұрын
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 ❤
@Ectro.aeptiktok
@Ectro.aeptiktok Ай бұрын
one of the best programmer
@milevamaric9244
@milevamaric9244 3 ай бұрын
this channel is a treasure
@dominickcharbonneau9250
@dominickcharbonneau9250 6 ай бұрын
This really helped things click thank you 🙏
@stevena1425
@stevena1425 Ай бұрын
My teacher taught me everything in python but thanks guy that was very helpful. I can. Understand it better
@softlightstudios
@softlightstudios 2 ай бұрын
Great video. One question though, why did you place f before the "Happy birthday' the print?
@bblaze34
@bblaze34 Ай бұрын
@Bro Code, When you do f strings a good suggestion is explain to the viewers what an f string is. But besides that great vid! :)
@unlock_don7647
@unlock_don7647 Жыл бұрын
Your a great teacher bro
@kevinsenquiz902
@kevinsenquiz902 6 ай бұрын
Great 👍🏽
@funstories728
@funstories728 Жыл бұрын
Thank God for this channel
@agent-ht5ri
@agent-ht5ri 3 күн бұрын
The .2f format specifier really blew my mind
@buster12322
@buster12322 Жыл бұрын
Im at lesson 47 can't believe how much I learned lol Love you for real
@profyle766
@profyle766 Жыл бұрын
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.
@javohirtoirov8793
@javohirtoirov8793 Жыл бұрын
Hi bro pls do full course about django, it'll be better if you do full course about backend, I appreciate your work 👏👏
@youness1554
@youness1554 Жыл бұрын
Big fan 🔱✌️
@ThPl897
@ThPl897 3 ай бұрын
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 😮
@aaronpaulxo
@aaronpaulxo 9 ай бұрын
mr.brocode, suppose i have this program to book movie tickets and i am inputting the values inside a function. I have to store it in a database, but the query insert doesnt execute outside the function loop and when it does execute inside the loop the values and stored in different rows since i have inputs from various functions. How can i insert the values from more than 1 function into the same row in mysql?
Python lists, sets, and tuples explained 🍍
15:06
Bro Code
Рет қаралды 222 М.
Python Functions | Python Tutorial for Absolute Beginners #1
30:34
Programming with Mosh
Рет қаралды 905 М.
Eccentric clown jack #short #angel #clown
00:33
Super Beauty team
Рет қаралды 19 МЛН
1 YEAR OF PYTHON CODING IN 1 MINUTE !!!!!
1:02
Pythonic
Рет қаралды 14 М.
Python default arguments are awesome! 👍
6:07
Bro Code
Рет қаралды 28 М.
Python functions 📞
9:15
Bro Code
Рет қаралды 38 М.
Python Functions (The Only Guide You'll Need) #12
17:20
Programiz
Рет қаралды 543 М.
Functions in Python | Introduction | Python for beginners #lec56
24:07
Jenny's Lectures CS IT
Рет қаралды 107 М.
How To Use Functions In Python (Python Tutorial #3)
14:55
CS Dojo
Рет қаралды 2,3 МЛН
Python dictionaries are easy 📙
8:06
Bro Code
Рет қаралды 189 М.
Python 101: Learn the 5 Must-Know Concepts
20:00
Tech With Tim
Рет қаралды 1 МЛН