Python logoPython/
PYL-E1120

Missing argument in function callPYL-E1120

Critical severityCritical
Bug Risk categoryBug Risk

A required function parameter isn't provided while calling the function. This is an error.

Bad practice

def add_student(student, section):
    students[section].append(student)

add_student("Aaron")  # Missing parameter `section`
def add_student(student, section):
    students[section].append(student)

add_student("Aaron", "10A")