Function Arguments in Python | Python Tutorial - Day #21

preview_player
Показать описание
Python is one of the most demanded programming languages in the job market. Surprisingly, it is equally easy to learn and master Python. This python tutorial for absolute beginners in Hindi series will focus on teaching you python concepts from the ground up.

python, C, C++, Java, JavaScript and Other Cheetsheets [++]:

►Learn in One Video[++]:

►Complete course [playlist]:

Follow Me On Social Media
Comment "#HarryBhai" if you read this 😉😉
Рекомендации по теме
Комментарии
Автор

Day #21 done! Learning programming is much more compelling when we are gifted with a teacher like you!

mariamhasan
Автор

I am doing this course in 2023.All your previous videos were good and likely to understand but i could not get anything from this one the average function and the others just went above my mind.

ThunderCodes
Автор

Day 5 of #100DaysOfCode. Today in this video 21, I learned about four types of function arguments in Python: default, keyword, required, and variable-length arguments. Default arguments have preset values, while keyword arguments allow specifying values using key-value pairs. Required arguments need correct positional order, and variable-length arguments accommodate extra arguments. Additionally, the return statement is used to pass values from functions back to the calling function.
Thank You Harry Bhaiya.

debasishbesra
Автор

You are probably thinking why use return when you have print, or something like that.

print just prints the result and forgets about it, like the c button on calculator. you saw it and that's that.

but return keeps the result just in case if you want to use the result on somewhere else.

also finishes the function.

devangjoshi
Автор

Sir me and my brother both watching you from Bangladesh. Thank you sir for teach us, Allah may bless you.

MRProgrammers
Автор

Harry Sir,
I am a chemical engineering student and I have literally zero programming knowledge. However, I took up this challenge to learn my first ever programming language to try and widen my placement opportunities in core IT industries as well (They seem to have way more demand and opportunities for student today). So far, I'm so proud of myself for having written my first code, even though it would be considered very simple and basic, but I am extremely grateful to you! You make learning so much fun, interactive, and engaging, and I look forward to your videos every single day! Thank you so much sir (: We can never ever thank you enough :')

shreya
Автор

Best series on any programming language

blogger.powerpoint_expert
Автор

Pls add a quiz or homework kind of thing so that we can clear our concepts perfectly

theimmortal
Автор

Sir apke jese teacher lakho me milte hai thank you so much sir hmare liye itni mehnat krte ho aap 🥰🥰 i want to meet you at least one time in my life ❤❤❤

SHIVAMKUMAR-fvrn
Автор

God bless you sir aapkai aaisai logao ka jarurat hai desh ko jo free of education

abhishekkumarthuglife
Автор

length=float(input("enter the length of box:"))
width= float(input("enter the width of box:"))
hight=float(input("enter the hight of box:"))
volume =length*hight *width
print("The volume of box is:", volume)

KidsFunnytalks
Автор

I like his videos. There is just one problem, he sometimes starts explaining a topic that he has not even started yet... And he expects people to understand it. But still, I definitely recommend you all to watch it.

theartandcraftcreation
Автор

Greeting(x):
Print("Thankyou so much ", x+str(" bhai"))
Greeting("Harry")

samarthgohri.
Автор

Code with harry == possible👍
Code without harry == Impossible👎
❓ AGREE❓

tajinder
Автор

def retrn():
cwt = ("Wapis Chale Jaaooon is Value ko Leke")
for i in cwt:
print(cwt)

retrn()

RehanPathan-
Автор

maza aa gaya sir, saare topics abhi tak ke crystal clear hain, main c ke baad python seekh raha hai and Python kaafi easy lag rahi hai c language se, thanks sir i'll finish this series soon and move on c++

DarkFFps
Автор

Bhai
TAB 3 arguments liye the (required arguments ke example me ), waha par 3 se divide Krna tha ..
Vo aap phle se 2 kr rhe the divide
Toh skip ho gya ...
THX! FOR GOOD EXPLANATION ❤🎉

indmayur
Автор

default arg= when value is given in function declaration
keyword arg= when we give keyword of variables in calling the functions. if we want, we can change sequence of keywords and it wont affect the outcome. however, if we dont use keywords then sequence is mandatory.
variable length args= when more arguments are being passed than those defined in the function. using *in declaring local variables allows function to treat provided arguments as a tuple(cannot be destroyed) and thus can be utilized repitetively.
return will give control of the program to the calling statement of function.

sohailnawaz
Автор

Now i am getting on track, “slowly and steadily “😊😊

Philomath
Автор

Def average(*x):
a = sum(x)
If 0 in x:
b = len(x) - x.count(0)
Else:
b = len(x)
print(a/b)

asrathore