Pass function as argument : Python tutorial 166

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 'pass function as an argument'

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

for those who haven't get this video
u can pass functions as arguments to other functions just like you would pass any other variable. This feature is often used in functional programming paradigms and allows for greater flexibility and abstraction in your code. Here's a simple example to illustrate how you can pass a function as an argument to another function:
def add(x, y):
return x + y

def subtract(x, y):
return x - y

def operate(operation, x, y):
return operation(x, y)

# Pass the add function as an argument
result1 = operate(add, 5, 3)
print("Result of addition:", result1) # Output: 8

# Pass the subtract function as an argument
result2 = operate(subtract, 10, 4)
print("Result of subtraction:", result2) # Output: 6

In this example, the operate() function takes another function (operation) as its first argument along with two other arguments (x and y). It then calls the operation function with the provided arguments x and y. By passing different functions (add and subtract) to operate(), we can perform addition or subtraction based on the function passed.

AKSHAYful
Автор

AISE HI 2-3 PART 1-2 CLB AKR DO BHAI FULL VEDIO SERIES PTHON PLEASE YE SAME VEDIO CLUB KARO

bvilnkt
Автор

sir app kaun sa extension use kr rhe ho

AnkitKumar-gvro
Автор

Bhai aapne pehle ki sari vedios kafi achhe se samjhai hain but is video mai aap mixup kyu kr rahe ho itna samjh nahi aara hai .

anujchauhan
Автор

Sir iska video.. Me jo humne kam kiya.. Pass function as a argument..iska aage kya use h.. Yah fir yeh sikhna important h ya nhi.. Kyuki abhi tak hum anonymous expression or list comprehension yahi same kam kar sakte h..to kya yeh chij sikhna jaroori h.. Pass function as a argument..please reply

RajGupta-pgcx
Автор

BHAI EK DS ALGO BH BANA DO BAS 300 Q FOR DSA LGO PYTHON STRIVER SDE SHEET YA LOVE BABBAR SDE SHEET PYTHONME HINDI ME SAME WAY EXPLAIN KAR DE BHAI, PHLE ROUND ME WO HI PUCHTE WRNA BHAGA DETE

bvilnkt
Автор

sir why we didn't use parenthesis when we are giving argument as a function like my_map(square(), l)

amirhamza
Автор

can anyone tell me how this func is implemented when the func(item) is passed then which function is called and how it returns the item so that item get appended.

AmanKumar-jtzb
Автор

sir please create a telegram group for questions and
please please please

ratnapalshende
Автор

nameerror name 'square' is not defined dikha raha hai

manojgurung
Автор

In hindi without warning again 🙄, couldn't have You put in the title?

petrskupa
Автор

Which editor are you using?... Thanks...

manishverma
Автор

sir mujhe my_filter function bana hai meri help karo please sir

windowsfile
Автор

HI Harshit, great videos. Can you please check your email and revert. Thanks

vinodthakkar
Автор

Useless Lag raha hai isse accha lambda Function se ho zata hai In ONE LINE

myindia
welcome to shbcf.ru