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

preview_player
Показать описание


Best Hindi Videos For Learning Programming:

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

The people who dislike don't know how many efforts go behind all these videos.... This is very nice explanation. Thanks Harry bhai!!

Sunshinep
Автор

You're exceptional harry. recommended you to brother of mine as well !

rishabhsharma
Автор

I like the docstring facility in python. It is really helpful for professionals.

r.k.rajoria
Автор

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:\n"))
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\n"))
h = float(input("enter second side\n"))
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\n"))
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\n", "sq for square\n", "re for rectangle\n", "ci for circle")
ans= input("Enter entity to find area\n")

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

swapnil
Автор

He is a ""Desi Programmer""
Good job man....
great Fan !!!!

axh_ketchum
Автор

Bro you are genius ..
teaching techniques are spectacular..
docstring concept was really helpful..

nitishdhiman
Автор

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!

almadijayangaming
Автор

Never heard of doc strings but thanks to you for giving such knowledge

abhishekvelera
Автор

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)

vipultewariibm
Автор

Bro just completed 30 u r series :) it's my second language, i learned html and css now python

wizminar
Автор

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 .

AadityaDwivedi
Автор

"Harry"- A man with no haters.

chinmaymathur
Автор

@CodeWithHarry your videos are fully dependable for learning

prernamittal
Автор

Harry you are just amazing, and the way you explained docstring is just awesome.

siddheshpanajkar
Автор

Thank you harry for discussing Doc String

ssbigdata
Автор

Apke last words Bohot kuch sikha kr gye 🤩..thanks Harry ji 😊

sarveshkumarnasare
Автор

Thanks Harry Bhai .. this really helps me a lot 😊

shxxxam.thakur
Автор

Thank Harry sir. App ne bahot ache se samjhaya.

intesarpatel
Автор

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

gadhavijayvant
Автор

This was greatly explained Thanks Man ... Applauded ₹40

shreyank