Q1
Why do we use functions?
💬Answer
Functions are used to enforce DRY (Don't Repeat Yourself) principles. They bundle blocks of code to make scripts modular, testable, and reusable.
def backup():
print("Backup started")
backup() # Reusable call
Related Python Questions
View All PythonQuestions →
Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio