Important Notice:

Function Parameters

Function Parameters

29 views 1 min read

Function Parameters :-

 Python में Parameters वे variables होते हैं, जिन्हें function definition में parentheses () के अंदर लिखा जाता है। इनका उपयोग function को बाहरी values प्राप्त करने के लिए किया जाता है।

English: Parameters are variables written inside the parentheses () in a function definition. They are used to receive values passed to the function.

Example:

def greet(name):
    print("Hello", name)

greet("Rahul")

Output:

Hello Rahul

Explanation:

  • name एक Parameter है।

  • "Rahul" एक Argument है।

  • Function call के समय "Rahul" की value name parameter को प्राप्त होती है।

Related Notes