Functions And Docstrings | Python Tutorials For Absolute Beginners In Hindi #23

  Рет қаралды 493,576

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 502
@abhaykumarsharma7050
@abhaykumarsharma7050 2 жыл бұрын
Thanks!
@Sunshine9p
@Sunshine9p 3 жыл бұрын
The people who dislike don't know how many efforts go behind all these videos.... This is very nice explanation. Thanks Harry bhai!!
@aryankalra1358
@aryankalra1358 3 жыл бұрын
There is a reason why this guy has 7.3k likes over 69 dislike
@PawanKumar-ol5sl
@PawanKumar-ol5sl 3 жыл бұрын
What reason?
@Sunshine9p
@Sunshine9p 3 жыл бұрын
@@PawanKumar-ol5sl what do u mean?
@PawanKumar-ol5sl
@PawanKumar-ol5sl 3 жыл бұрын
What is reason of 7.3k likes pe 69 dislike ?
@PawanKumar-ol5sl
@PawanKumar-ol5sl 3 жыл бұрын
Aryan Kalra ne hi to kaha tha
@rishabhsharma329
@rishabhsharma329 4 жыл бұрын
You're exceptional harry. recommended you to brother of mine as well !
@raghavsharma6594
@raghavsharma6594 3 жыл бұрын
@Makai Asher lmaooo noob
@aakashsenkumar7488
@aakashsenkumar7488 3 жыл бұрын
you have same number of likes as harry's vid i meant the digits are same
@r.k.rajoria1172
@r.k.rajoria1172 3 жыл бұрын
I like the docstring facility in python. It is really helpful for professionals.
@swapnil5332
@swapnil5332 4 жыл бұрын
Dear Harry Sir, i am Mechanical engineer and started learning AI from last month.. and started learning python from your videos.. it was amazing... i made this program for "basic Area calculator" by learning up to this video.. Thank you def square_area(): sqside = float(input("enter side: ")) if sqside == 0: print("value should be more than zero") return sq_area = sqside ** 2 print("Area of Square is :", sq_area) return sq_area def rectangle_area(): b = float(input("enter first side ")) h = float(input("enter second side ")) if b == 0 and h == 0: print("value should be more than zero") return rec_area1 = b * h print("Area of Rectangle is", rec_area1) return rec_area1 def circle_area(): r = int(input("enter radius ")) circ_area1 = 3.142 * r * r print("Area of Circle is", circ_area1) return circ_area1 sq = square_area ci = circle_area re = rectangle_area print("Choose your entity ","sq for square ","re for rectangle ","ci for circle") ans= input("Enter entity to find area ") while(ans): if ans== "sq": print (square_area()) break if ans== "ci": print (circle_area()) break if ans== "re": print (rectangle_area()) break else: print("Wrong entity") break
@MuskanAroraTheVideocrafter
@MuskanAroraTheVideocrafter Жыл бұрын
thankyou so much , your single comment made me understand and do my cs project😍🥰🤩which i couldnt complete past few weeks🥲😭
@axh_ketchum
@axh_ketchum 4 жыл бұрын
He is a ""Desi Programmer"" Good job man.... great Fan !!!!
@ashulahre8009
@ashulahre8009 3 жыл бұрын
You have a error
@soleil2816
@soleil2816 3 жыл бұрын
Syntax error ⚠️
@nitishdhiman4630
@nitishdhiman4630 5 жыл бұрын
Bro you are genius .. teaching techniques are spectacular.. docstring concept was really helpful..
@abhishekvelera4780
@abhishekvelera4780 4 жыл бұрын
Never heard of doc strings but thanks to you for giving such knowledge
@vipultewariibm
@vipultewariibm 4 жыл бұрын
Hi Harry, I really appreciate your efforts for creating such wonderful tutorial and it will help a lot to many people who are aspiring developers or who is interested in learning Python. Adding to it, can you please also add the video regarding functions to show the example where it can also return more than one values as generally function return only one value but in Python we can return more than value. If you have already added this example in any future examples then it is fine. I am pasting an example in the comment section. I hope you don't mind it. Thanks in advance and again appreciating your efforts... #Multiple values can be returned as result from the function: def function3(a,b): """This function will return values for addition and substraction both for entered numbers""" add_result = sum((a,b)) sub_result = a - b return add_result,sub_result add_value,sub_value = function3(7,5) print("Addition result is :",add_value,"Substraction result is :",sub_value)
@samme4294
@samme4294 4 жыл бұрын
what if i need a run time choice between number of returns i needed
@debasishsahoo3446
@debasishsahoo3446 4 жыл бұрын
Thanks bro
@almadijayangaming834
@almadijayangaming834 3 жыл бұрын
Harry Bhai, I have watched many videos on return value and never really understood it. This video taught it to me very easily... Thank you so much!
@wizminar
@wizminar 3 жыл бұрын
Bro thanks...... just completed 30 videos.....loved u r series :) it's my second language, i learned html and css now python
@AadityaDwivedi
@AadityaDwivedi 4 жыл бұрын
Sir/Bro we 5 friends in a group started learning python from your videos . Really we realised we found coding so much easy . Please make videos on flutter .
@ravindrakaushik6245
@ravindrakaushik6245 4 жыл бұрын
You are genius bro. Hame bhi add kar lo apne group me.
@girishpandey3836
@girishpandey3836 2 жыл бұрын
@@ravindrakaushik6245 bhia hmako bhul gaye ham Tohre gar ke pecha to rhta hu
@mintuchoudhary3702
@mintuchoudhary3702 2 жыл бұрын
Bro you have notes
@chinmaymathur2430
@chinmaymathur2430 3 жыл бұрын
"Harry"- A man with no haters.
@nitikasharma3623
@nitikasharma3623 3 жыл бұрын
No man you are wrong. White hat jr.
@itzz
@itzz 3 жыл бұрын
@@nitikasharma3623 🙁🤣🤣🤣🤣🤣hmm 🤣
@sarveshkumarnasare1420
@sarveshkumarnasare1420 4 жыл бұрын
Apke last words Bohot kuch sikha kr gye 🤩..thanks Harry ji 😊
@siddheshpanajkar660
@siddheshpanajkar660 3 жыл бұрын
Harry you are just amazing, and the way you explained docstring is just awesome.
@ssbigdata6732
@ssbigdata6732 3 жыл бұрын
Thank you harry for discussing Doc String
@prernamittal2169
@prernamittal2169 3 жыл бұрын
@CodeWithHarry your videos are fully dependable for learning
@sanasaleem4737
@sanasaleem4737 3 жыл бұрын
6:26 def function2 (a, b): formula = a**2 + b**2 + 2*(a*b) return formula answer = function2(2, 4) print("answer is: ",answer)
@RohanDasRD
@RohanDasRD 6 жыл бұрын
learned something new today! mloved it!
@programmingwithjavascript3579
@programmingwithjavascript3579 3 жыл бұрын
Hello Rohan das bro
@vikaasadityachouhan2902
@vikaasadityachouhan2902 4 жыл бұрын
def average(list_of_numbers,n): """Run the below program to find the average of numbers""" avg=(sum(list_of_numbers))/n return avg list_of_numbers = [] print(average.__doc__) n = int(input("For how many number are we finding average for? ")) i=0 while i
@samme4294
@samme4294 4 жыл бұрын
good one Vikaas
@shreyank1558
@shreyank1558 4 жыл бұрын
This was greatly explained Thanks Man ... Applauded ₹40
@vedkumar3305
@vedkumar3305 4 жыл бұрын
def fun1(x,y,z): print("The answer is:",x+y+z) fun1(5,6,4)
@umangjain2327
@umangjain2327 3 жыл бұрын
15
@shxxxam.thakur
@shxxxam.thakur 4 жыл бұрын
Thanks Harry Bhai .. this really helps me a lot 😊
@intesarpatel2107
@intesarpatel2107 2 жыл бұрын
Thank Harry sir. App ne bahot ache se samjhaya.
@shomendrapradhan9558
@shomendrapradhan9558 5 жыл бұрын
Harry bhai , kya baat hai apne __doc__ very easily explain kiya. Thanks Harry bhai.
@nimishshrimankar6257
@nimishshrimankar6257 4 жыл бұрын
Mujhe to kuch bhi samj nhi aya
@terminalsocket3677
@terminalsocket3677 2 жыл бұрын
Thanks Harry Bhai. You are the best. I have watched many videos on return value and never could really understand it. But now i do.
@robosapien1413
@robosapien1413 3 жыл бұрын
Actually am mechanical engineer but I think (mechanical+Python =deadly combination ) for future ... thanks for these lectures
@sayanNITdgp2025
@sayanNITdgp2025 2 жыл бұрын
same for me
@robosapien1413
@robosapien1413 2 жыл бұрын
@@sayanNITdgp2025 you are from mechanical
@sayanNITdgp2025
@sayanNITdgp2025 2 жыл бұрын
@@robosapien1413 yupp
@robosapien1413
@robosapien1413 2 жыл бұрын
@@sayanNITdgp2025 seems like u have same interest ...robotics and mechanical .... Cool Can I get your fb id so that in future if get stuck ... I will take ur help
@sayanNITdgp2025
@sayanNITdgp2025 2 жыл бұрын
@@robosapien1413 yes🤩.... My dream is Boston Dynamics
@shreyashkashyap
@shreyashkashyap 3 жыл бұрын
Thank you! Was waiting for this video.
@HARSHYADAV-nx8ug
@HARSHYADAV-nx8ug 5 жыл бұрын
upto the point.good work
@Jagjot_Singh
@Jagjot_Singh 4 жыл бұрын
Aree bhai best explaination 👍
@sudarshanmhaisdhune1039
@sudarshanmhaisdhune1039 4 жыл бұрын
Ekdm mst content harry bhai.....
@gadhavijayvant
@gadhavijayvant 3 жыл бұрын
hello sir mene abhi 2021 - march me aapki series start ki hai great job aapane excercise 3 di wo complete ki hai SO jab hame guess the number chahiye mil jaye .........
@professionaltailors1489
@professionaltailors1489 4 жыл бұрын
😍😍😍😍great man.....i love your videos ...u make easy to understand........really u are appreciatable
@garainfamily7431
@garainfamily7431 3 жыл бұрын
After coding in Scratch, its now very easy for me :D
@charanm1773
@charanm1773 3 жыл бұрын
Thanks, Harry Bhai for providing us with these python courses for free
@saikatrano3987
@saikatrano3987 3 жыл бұрын
Dil se shukriya harry bhai.. ❤️❤️❤️♥️♥️
@rabbanali9782
@rabbanali9782 2 жыл бұрын
a = int(input("enter first number")) b = int(input("enter second number")) def rabban(a,b): """This is a function which will input two numbers and sum them and give ther summing result and there average.""" print("rabban gives this answer: Sum of these two numbers is:",a+b) average ="And average of these two numbers is",(a+b)//2 return average v=print(rabban(a,b)) # print(rabban.__doc__)
@firefluxgaming9551
@firefluxgaming9551 4 жыл бұрын
bhai mene ek average finder of ten number banaya hai :- print("this is firefluxer's super average finder") print("enter the first number") n1=input() print("enter the second number") n2=input() print("enter the third number") n3=input() print("enter the fourth number") n4=input() print("enter the fifth number") n5=input() print("enter the sixth number") n6=input() print("enter the seveth number") n7=input() print("enter the eighth number") n8=input() print("enter the nineth number") n9=input() print("enter the tenth number") n10=input() d=(int(n1)+int(n2)+int(n3)+int(n4)+int(n5)+int(n6)+int(n7)+int(n8)+int(n9)+int(n10))/10 print("Average(mean) ",end="") print("-") pls koi bhi like kar do agar acha laga to aur try karke run karke dekho agar ho sakey to harry bhai pls dil dedo
@Amina-hs9px
@Amina-hs9px 4 жыл бұрын
Good bhai
@sahilpunia2122
@sahilpunia2122 4 жыл бұрын
bhai apka program bilkul shi h bs last me apne jo print("-") ye likha h yha galti h. isko edit kr k shi kr lo... print(" ") iska matlab hota h jo bhi isme type kroge vo print ho jaega edit kr k aap print(d). likh do apka program correct ho jaega....
@rachitjain5598
@rachitjain5598 4 жыл бұрын
Thank you Harry for these awesome videos. Have 1 doubt in this video. Can we use this _doc_ string for the logic purpose in the program. For ex: if function1.__doc__ == "Harry": do something Can you please also tell the correct sequence of your playlists to be completed for Machine Learning course?
@dulakmandal2935
@dulakmandal2935 4 жыл бұрын
Yes you can. Try it yourself. It works.
@shaganjotkaur269
@shaganjotkaur269 3 жыл бұрын
Thanks a lot and lots of respect 😊
@Vv-xt9rz
@Vv-xt9rz 2 жыл бұрын
Ty so much sir bass apka he videos samjta hi u r really good
@f-addicted7439
@f-addicted7439 3 жыл бұрын
One of the best tutorial of python❤️🙏
@pw-fanclub2826
@pw-fanclub2826 4 жыл бұрын
doc string is good thing I learn first time thank you
@ECHimanshuJungareEC
@ECHimanshuJungareEC 3 жыл бұрын
Thankuu harry bhai....ap great hooo
@kishanbhise4733
@kishanbhise4733 2 жыл бұрын
Great way of teaching Harry bhai
@victor.novorski
@victor.novorski 3 жыл бұрын
You use light theme? 👀 🔥
@aakashsenkumar7488
@aakashsenkumar7488 3 жыл бұрын
sus
@Heyaadi01
@Heyaadi01 2 жыл бұрын
Such a great video by a great sir.🤓
@shubham18goyal
@shubham18goyal 2 жыл бұрын
Thanks for crystal clear clearification... Keep posting
@chainsawdude2087
@chainsawdude2087 2 жыл бұрын
def multilpyfunc(a,b): '''This function find the product of two given numbers ''' m=a*b return m x=multilpyfunc(3,5) print(multilpyfunc.__doc__)
@karishmasharma5571
@karishmasharma5571 3 жыл бұрын
Nice sir Thank you 🙏
@girishchede9370
@girishchede9370 4 жыл бұрын
harry bhai apne website bohot acchi banayi hai .
@tusshargoswami3443
@tusshargoswami3443 3 жыл бұрын
Bro before you start, if you share the syntax on your screen then explain with definition, it will give the actual understanding better for limited users
@rajankumar_37
@rajankumar_37 5 жыл бұрын
Must video ._docstring_ naya sikhne ne mila
@abhinav1483
@abhinav1483 2 жыл бұрын
Great tutorial bhai!!! Thank You😀😀
@ahmadfraz9715
@ahmadfraz9715 4 жыл бұрын
you are really professional teacher..
@nikki3682
@nikki3682 3 жыл бұрын
thank u so much for making this video
@mandvibhadouriya6850
@mandvibhadouriya6850 3 жыл бұрын
def function1(a,b): '''yes we are using function''' sum = a + b print(sum) return (sum) v=function1(12,2) print(v) print(function1.__doc__) output=== 14 14 yes we are using function
@royrings
@royrings 2 жыл бұрын
keep going champ!!!
@_itz._moin_
@_itz._moin_ 2 жыл бұрын
Excellent Tutorials
@skillenhancer5521
@skillenhancer5521 2 жыл бұрын
doc string concept was new for me. Thanks harry bhai .
@arpitagec9
@arpitagec9 5 жыл бұрын
You talked about data science jargons like R square. Can you pls make a series to cover all stats concept required for ML.
@pickprogramming4206
@pickprogramming4206 5 жыл бұрын
please give me your contact
@ramkrishnayadav9335
@ramkrishnayadav9335 2 жыл бұрын
i m learning python through you.. sir 🙏🙏🙏❤️❤️
@syedfarhanali9527
@syedfarhanali9527 4 жыл бұрын
amazing bro !!!!
@jayandhami7344
@jayandhami7344 2 жыл бұрын
love from Nepal harry bhai ❣ awesome video
@Engineer9060
@Engineer9060 3 жыл бұрын
that moment he speaks beta ka nam sikandr or hota dubla patla sa... i literally launghed
@rajivmura591
@rajivmura591 5 жыл бұрын
Superb 🙏🙏🙏
@samme4294
@samme4294 4 жыл бұрын
def table_print(i): """ This function prints table of any number given as function input""" j = 1 print("So you need the table of {} Here you go " .format(i)) while(j
@thestrugglingguy6525
@thestrugglingguy6525 4 жыл бұрын
# a = 9 # b = 8 # c = sum((a, b)) # built in function def function1(a, b): print("Hello you are in function 1", a+b) def function2(a, b): """This is a function which will calculate average of two numbers this function doesnt work for three numbers""" average = (a+b)/2 # print(average) return average # v = function2(5, 7) # print(v) print(function2.__doc__)
@abhi_1441
@abhi_1441 3 жыл бұрын
This is some high class explanation..
@shankhadeepghosh6086
@shankhadeepghosh6086 3 жыл бұрын
User1=int(input (" Enter the number: ")) User2=int(input (" Enter the number: ")) def addition (user1,user2): Print("Your value is :",user1+user2) addition(user1,user2)
@shivanshsoni379
@shivanshsoni379 3 жыл бұрын
thanks bro for teaching us.....
@pradeepchaursia656
@pradeepchaursia656 2 жыл бұрын
Hello Harry! I m preparing competitive exam, your tutorial is very helpful for me lots of thanks❤
@VishalSingh-oe3zx
@VishalSingh-oe3zx 4 жыл бұрын
Hello harry Bhai. here it is... print(function2.__doc__) i have reached on this video.
@umairy352
@umairy352 2 жыл бұрын
Ok Sir good ho gya👌
@programmingfacts6532
@programmingfacts6532 3 жыл бұрын
concept cleared
@manmeetsingh6831
@manmeetsingh6831 6 жыл бұрын
nice...easy explainations....
@coder.bihari
@coder.bihari 3 жыл бұрын
you are great sir
@engineer_miss
@engineer_miss 5 жыл бұрын
please make a series on machine learning.
@saharayub4448
@saharayub4448 2 жыл бұрын
good work!
@mystery45454
@mystery45454 4 жыл бұрын
😊👏Nice
@laliteshpandey344
@laliteshpandey344 4 жыл бұрын
def functions (): print ("Binod") Function () Output= binod
@dreamerb1
@dreamerb1 Жыл бұрын
Thank you so much harry bhai❤❤
@anandgp07
@anandgp07 2 жыл бұрын
Thank you Harry bhai for the video
@foruse471
@foruse471 3 жыл бұрын
Love you Harry bhaiya 😘😘😘😘😘😘
@swagataacharjee534
@swagataacharjee534 4 жыл бұрын
Can I use conditional statements( if, ifelse, else ) or loops( while, for ) in Functions?
@fernsfloy
@fernsfloy 4 жыл бұрын
yes
@Vikash_63-71
@Vikash_63-71 3 жыл бұрын
Yes
@hibasyed7646
@hibasyed7646 3 жыл бұрын
Amazing
@cricketisourpassion6956
@cricketisourpassion6956 2 жыл бұрын
well done harry
@akashgupta6254
@akashgupta6254 6 жыл бұрын
Osssm video bro..❤
@raunaksahu9059
@raunaksahu9059 4 жыл бұрын
Sir you are print("Very Very Good teacher🤞🤞")
@PawanKumar-ol5sl
@PawanKumar-ol5sl 3 жыл бұрын
Error no emoji can print in python .
@raunaksahu9059
@raunaksahu9059 3 жыл бұрын
@@PawanKumar-ol5sl oh! It's a my mistake ok
@VijayChauhan-Krishna
@VijayChauhan-Krishna 3 жыл бұрын
Thank you sir ❤️
@ravisuman174
@ravisuman174 3 жыл бұрын
Thank you sir Hamre liai ye channel banana ke liai
@prernasonawane7276
@prernasonawane7276 4 жыл бұрын
thanks sir youare great
@ravidesai12
@ravidesai12 2 жыл бұрын
aap best ho bhai
@ankurmehta4325
@ankurmehta4325 6 жыл бұрын
Bhai bhot ache se samjate ho aap
@adityapandey742
@adityapandey742 4 жыл бұрын
garda bhai love u
@funnytbaadhrk5204
@funnytbaadhrk5204 2 жыл бұрын
def funck1 (a,b): """Theis line are very importen so do not try to delete(this line name dock string) this is the doc strin if you want print this line so write-print(function name,__doc__)""" #average=(a+b)/2 #return average print(funck1. __doc__)
@DakshuMachines
@DakshuMachines 3 жыл бұрын
Actually Harry bhai I am CS student and I started your python in one video , now I am at the point of Recursion but I want to learn all things like Data structures so I want to access your python playlist but from where I can start it??
@hackerking6989
@hackerking6989 3 жыл бұрын
thanks Harry bhai
@musiciantirth3710
@musiciantirth3710 4 жыл бұрын
I Watched Your 58 Videos Of Python Playlist But Mujhe Tab Realize Gua Ki Nahi Mujhe To Kuchh Samajh Hi Nahi Aa Raha Baad Me Mene Vaaps Chalu Ki Playlist ☺️And Now I Understood Everything
@thestrugglingguy6525
@thestrugglingguy6525 4 жыл бұрын
bhai isiliye samajh nhi aa rha hoga kyuki aap isko television ki tarah dekh rhe honge agar apko sach me intrest h to pycharm kholke har concept ko code kro or phir khud samjho .... me bhi pehle aapki tarah hi dekhta tha or iske chakkar me mere 2 mahine barbaad hogye
@musiciantirth3710
@musiciantirth3710 4 жыл бұрын
@@thestrugglingguy6525 yes mene bhi baad me practical kiya videos dekhke
@thestrugglingguy6525
@thestrugglingguy6525 4 жыл бұрын
@@musiciantirth3710 nice
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
Really nice videoss :) :) Please make video over artificial intelligence and machine learning :)
@alexjr977
@alexjr977 4 жыл бұрын
Please go to channel
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
@@alexjr977 Sure
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
@@alexjr977 I wanna become data scientist 😅
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
@@alexjr977 thanks 😊
@harshitachaurasia1246
@harshitachaurasia1246 4 жыл бұрын
@@alexjr977 ya i completed almost now projects are remaining 👍 Do complete it ,it will help you 🤗
@Thorn_Princess_
@Thorn_Princess_ 3 жыл бұрын
so good video bro
@smgaming8197
@smgaming8197 5 жыл бұрын
nice bhai
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 52 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 61 МЛН
This position absolute mistake is ruining modals
4:51
Kevin Powell
Рет қаралды 11 М.
Functions in Python | End to End Video | Complete Video
1:03:35
#6: Python Docstrings | Python Best Practices
5:50
Programiz
Рет қаралды 71 М.
The $2 Billion AI Startup That Could Replace Coders
20:59
Forbes
Рет қаралды 49 М.
Solve 10 problems on functions in python
59:12
Chai aur Code
Рет қаралды 39 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 52 МЛН