Тёмный

10. Functions [Python 3 Programming Tutorials] 

codebasics
Подписаться 1,1 млн
Просмотров 162 тыс.
50% 1

In today’s session, we will talk about “functions” in python. The video will explain the introduction of “functions”, why “functions” are needed, encapsulate code in a function, default arguments, the difference between “local and global variables” and “document strings”.
Exercise: github.com/codebasics/py/blob...
Topics that are covered in this Video:
0:00 Functions introduction
0:54 why functions are needed
3:09 encapsulate code in function
3:24 Define function
10:22 Name argument
11:09 Global vs Local Variables
12:47 Default variable
14:14 Document strings
Do you want to learn technology from me? Check codebasics.io/ for my affordable video courses.
Next Video:
11. Dictionaries and Tuples [Python 3 Programming Tutorials]: • 11. Dictionaries and T...
Website: codebasics.io/
Facebook: / codebasicshub
Twitter: / codebasicshub

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

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@codebasics
@codebasics 2 года назад
Do you want to learn python from me with a lot of interactive quizzes, and exercises? Here is my project-based python learning course: codebasics.io/courses/python-for-beginner-and-intermediate-learners
@Drampam
@Drampam 4 года назад
According to PEP 8 it's important to skip 2 lines after function block. Just for beginners to pay attention on that
@avisheksaha5321
@avisheksaha5321 4 года назад
Extremely glad to watch all your videos regarding python and data science. You explained it not only quiet well but extremely well. Thank you. Looking forward to watch all your upcoming lessons.
@skkkks2321
@skkkks2321 5 лет назад
Loving your simplicity and evenly broken module.Would it be possible for you to make a video series with Project like Data Science.Thank you
@bhanuprathapnaidu8303
@bhanuprathapnaidu8303 4 года назад
Really clear explanation sir,Great work. Thank you so much
@mousumimaity796
@mousumimaity796 2 месяца назад
A helpful video to make clarity on if condition, for loop etc.
@codebasics
@codebasics 3 года назад
Here is the link of exercise along with the solution, please work on it as it will make your learning solid: github.com/codebasics/py/blob/master/Basics/Exercise/10_functions/10_functions_exercise.md
@rushalchitrakar2248
@rushalchitrakar2248 3 года назад
page not found
@nidalnasser
@nidalnasser 3 года назад
page not found
@ameyayadav1312
@ameyayadav1312 3 года назад
page not found
@shubhacshekar6197
@shubhacshekar6197 2 года назад
Great hard work really appreciate your simplicity in explaining beginners.Thanks sir.
@codebasics
@codebasics 2 года назад
😇👍
@pushpayerraguntla3250
@pushpayerraguntla3250 3 года назад
This is awesome code man,thanks a lot. God bless you
@codebasics
@codebasics 3 года назад
You're welcome!
@RM-lb7xw
@RM-lb7xw 3 года назад
Loving this series. Any chance you are going to make a series on Data Structures and Algos in the future? Would really love to learn from you.
@codebasics
@codebasics 3 года назад
I already have a series (I am working on adding algo videos but DS videos are already there). in youtube search "codebasics data structures and algorithms in python"
@prakharmishra2977
@prakharmishra2977 4 года назад
you are really great sir,i respect your altruistic work
@codebasics
@codebasics 4 года назад
Prakhar, I am happy this was helpful to you
@anuruddhtamrakar5911
@anuruddhtamrakar5911 3 года назад
while using default argument letting b=0 if we give variables as user input and then it shows error sir. How can we overcome it?
@codebasics
@codebasics 5 лет назад
Learn data science with python and pandas: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-CmorAWRsCAw.html
@buddhasatta
@buddhasatta 3 года назад
do u have practice questions which i can use to practice codes
@malikhassanabdulrehman6897
@malikhassanabdulrehman6897 3 года назад
Why do we need 2nd loop to print stars when we can do it with just a single main for loop?
@pahadiculture1912
@pahadiculture1912 Год назад
Thanks sir
@arisgacha296
@arisgacha296 3 года назад
Thank you for your helpful.
@codebasics
@codebasics 3 года назад
Glad it was helpful!
@vamsi3087
@vamsi3087 4 года назад
What is the meaning of def add_numbers(file:tel_num:set)->set: Pass
@pranavikulkarni215
@pranavikulkarni215 2 года назад
i am super gladd i found this damnnnnnn!
@codebasics
@codebasics 2 года назад
Glad you enjoyed it
@hirakdas770
@hirakdas770 3 года назад
great
@MrShinshan89
@MrShinshan89 Месяц назад
in the solution for print * can we not use just one for loop like below def print_pattern(num): n = range(num+1) for value in n: print (value * "*") pulp = print_pattern(3) print(pulp)
@shahulhameedbuhari8479
@shahulhameedbuhari8479 3 года назад
In your exercise solution for printing stars, two loops are used . I used the below code to get the same solution. Can i have your comment on this, please def printStars(endNumber) : total = "" for i in range(1,endNumber+1) : total += "*" print(total) printStars(5)
@kanwarpreetsachdeva7410
@kanwarpreetsachdeva7410 2 года назад
def print_pattern(num_lines=5): for i in range(num_lines): print("*" * (i+1)) return None print("Print pattern with input=4") print_pattern(4) print("Print pattern with input=6") print_pattern(6) print("Print pattern with no input") print_pattern()
@devloper_hs
@devloper_hs 3 года назад
Sir why haven't you included **ke for giving multiple arguments in a fn
@shwetaredkar734
@shwetaredkar734 2 года назад
You should be in teaching field not in industry. Academics need people like you for good understanding of programming.
@codebasics
@codebasics 2 года назад
I am moving to teaching field by teaching on RU-vid already ☺️
@Griffindor21
@Griffindor21 3 года назад
Excellent video! There's an exercise? I can't find it here.
@shivakrishna1743
@shivakrishna1743 3 года назад
In description and pinned comment :)
@vishalithakur6403
@vishalithakur6403 Год назад
Sir i could understand
@TonydeSa
@TonydeSa 3 года назад
You've mentioned that you have posted exercises after each video. Can't seem to find them. Can you please post a link to the exercises? Your tutorials are great and working on exercises after them would help to fix them.
@codebasics
@codebasics 3 года назад
Actually I am realizing I had posted them in my old series which had a background music. Many people didn't like the music so I had to make the playlist private. Also not all tutorials had an exercise. Can you do one thing? Go to my GitHub repo. GitHub.com/codebasics/py there you will find a folder called basics/Hindi. Here there are tutorials along with exercises description which is in .md file and that will have an exercise as well as a link for a solution
@codebasics
@codebasics 3 года назад
I am also going to do a new series on python with better content and exercises
@TonydeSa
@TonydeSa 3 года назад
@@codebasics Appreciate your efforts. Thank you
@prasadukandregula3478
@prasadukandregula3478 3 года назад
@@codebasics Hello thanks for your Python tutorial. As mentioned by you, when can we expect new series on Python. Actually, I am about to learn Python. So asking. Thanks in advance for your answer.
@fitarmy749
@fitarmy749 4 года назад
I want to learn machine learning and AI will this course be effective to my path?
@codebasics
@codebasics 4 года назад
Yes it should be. After finishing python tutorials I have pandas tutorials playlist and machine learning tutorials so you can watch them
@fitarmy749
@fitarmy749 4 года назад
@@codebasics thanks teacher
@shradha_payal
@shradha_payal Год назад
where is the smaple exercises?
@anmolgupta861
@anmolgupta861 2 года назад
Sir mere Jupiter me error bta rha h
@thulasiram1999
@thulasiram1999 2 года назад
Anyone Please explain that line total = total + item icant understand
@user-od3gl1lf7z
@user-od3gl1lf7z 4 месяца назад
wallaahhhh
@balakrishnareddithala8718
@balakrishnareddithala8718 Год назад
Professor....
@informationbhargav
@informationbhargav Год назад
sir i wanna internship. if you give
@farahamirah2091
@farahamirah2091 3 года назад
Im sorry sir., Its difficult to understand the exercise., I try to make it by myself without looking solution, for example, the exercise say, input value., So I try to make user put an input.,then i got blur, i go to the solution, the input is already given.
@farahamirah2091
@farahamirah2091 3 года назад
@Meen Prasad Jaisi thank you sir
@ArjunDas
@ArjunDas Год назад
everything checked but i still got result as: Tom Expenses: 2100 Joe Expenses: 200
@vedikagupta407
@vedikagupta407 6 месяцев назад
actually same here...idk why is this happening
Далее
Please Master These 10 Python Functions…
22:17
Просмотров 113 тыс.
AI Engineer Roadmap | How I'd Learn AI in 2024
30:41
Просмотров 606 тыс.
Python Functions (The Only Guide You'll Need) #12
17:20
9. For loop [Python 3 Programming Tutorials]
20:41
Просмотров 186 тыс.
25 Nooby Pandas Coding Mistakes You Should NEVER make.
11:30
5 Useful F-String Tricks In Python
10:02
Просмотров 288 тыс.
Python Tutorial - 13. Reading/Writing Files
15:22
Просмотров 190 тыс.
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 798 тыс.