10. Functions [Python 3 Programming Tutorials]

preview_player
Показать описание
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”.

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

Next Video:

Рекомендации по теме
Комментарии
Автор

According to PEP 8 it's important to skip 2 lines after function block. Just for beginners to pay attention on that

Drampam
Автор

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

skkkks
Автор

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.

avisheksaha
Автор

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.

RM-lbxw
Автор

A helpful video to make clarity on if condition, for loop etc.

mousumimaity
Автор

You should be in teaching field not in industry. Academics need people like you for good understanding of programming.

shwetaredkar
Автор

Really clear explanation sir, Great work. Thank you so much

bhanuprathapnaidu
Автор

you are really great sir, i respect your altruistic work

prakharmishra
Автор

Great hard work really appreciate your simplicity in explaining beginners.Thanks sir.

shubhacshekar
Автор

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)

shahulhameedbuhari
Автор

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)

MrShinshan
Автор

This is awesome code man, thanks a lot. God bless you

pushpayerraguntla
Автор

Sir why haven't you included **ke for giving multiple arguments in a fn

devloper_hs
Автор

Why do we need 2nd loop to print stars when we can do it with just a single main for loop?

Studentof
Автор

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?

anuruddhtamrakar
Автор

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.

TonydeSa
Автор

Excellent video!
There's an exercise? I can't find it here.

Griffindor
Автор

I want to learn machine learning and AI will this course be effective to my path?

fitarmy
Автор

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.

farahamirah
Автор

Anyone Please explain that line total = total + item icant understand

thulasiram