Q2
What is the difference between a parameter and an argument?
💬Answer
- Parameter: The variable placeholder declared in the function definition.
- Argument: The actual value passed to the function when calling it.
def deploy(env): # env is the parameter
pass
deploy("prod") # "prod" is the argument
Related Python Questions
View All PythonQuestions →
Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio