Function inside function : Python tutorial 76

preview_player
Показать описание
Guys please help this channel to reach 20,000 subscribers. I'll keep uploading quality content for you.

Python is easy programming language to learn and anyone can learn it, and these tutorials are 100% free in hindi.

You can share this playlist with your brother, sisters and friends. This will surely add some values to their life.

If you follow this complete playlist of python tutorial surely you will learn everything about python programming language.

This video is all about "function inside function"

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

def greater(a, b):
if a>b:
return a
return b
def greatest(a, b, c):
return greater(greater(a, b), c)
print(greatest(368, 32, 109))

butterflystudiors
Автор

we can also do like this right?
def greater(a, b):
if (a>b):
return a
return b

number1 = int(input("enter first number: "))
number2 = int(input("enter second number: "))
number3 = int(input("enter third number: "))

print("the greater number is: "+str(greater(greater(number1, number2), number3)))

hikikomori
Автор

Kindly provide some video material related python for system admin

abdularshad
Автор

Sir plz make video lecture of java it's humble request

navneetsingh
Автор

sir 20, 000 to kiya apke to 2 milion bi pore ho jayege because you are doing your work very fine

prabh
Автор

bro, I can't reach your source code ..it displays too many requests.

hardbreakerae
Автор

My Girlfriend: What is the full form of kiss🤔
Me: Keep it simple stupid😎😎😎
😁😁😁😂😂😂😂😆😆😆😆

shubhamraut
Автор

sir what i do for finding greatest from n number

Mr.Nirala
Автор

Sir as a statement terminator kaun kaam karta h



Means ki mai agr saara code ik line mai likhna chahu to kya karu

veerkumar
Автор

Sir yeh new greater function me aur greatest function to same hi hai t use kya hua

mrabhi
Автор

def max1(a, b):
if a>b:
return a
return b


def max2(a, b, c):
if max1(a, b)>c:
return max1(a, b)
else:
return c


print(max2(7, 5, 4))

rangesh
Автор

sir ek doubt hai starting me jo do tareeke se apne code karya hai to agar unko comment out kar de to third me greater is not def. batane lagta hai any one repaly me how to define greater

alokshukla
Автор

# def bigger(n1, n2):
# if n1 > n2:
# return n1
# return n2
# def greatest(a, b, c):
# greater = bigger(num1, num2)
# return bigger(greater, c)


# num1 = int(input("Enter number1 number : "))
# num2 = int(input("Enter number2 number : "))
# num3 = int(input("Enter number3 number : "))
# greatest = greatest(num1, num2, num3)
# print(f"{greatest} is greatest")

jatintomar
Автор

bro. how to define if both numbers are equal

gouravmishra
Автор

that one line short method u told, return greater(greater(a, b), c)
is not working in ideone.com, it is showing error

ShivamGupta-glbm
Автор

what need to write in my computer for ruuning c and c++ file in git bash compliar

nirajvaghasiya
Автор

def greater(a, b):
... if a < b:
... return b
... return a
...
>>> def greatest(a, b, c):
... return greater(greater(a, b), c)
...
>>> print(greatest(4, 5, 6))

soumyadevsanyal
Автор

def get_sqare(num):
return f" square of greatest number is : {num**2}"

def get_greated(a, b):
return get_sqare(max(a, b))

print(get_greated(10, 20))

hybridhouse
Автор

Sir source code shows error plss reply what to do

naasamajh_shaayar
Автор

Sir where use it(function inside function).

tarangbisen