Python

Python

Made by DeepSource

Missing argument in function call PYL-E1120

Bug risk
Critical

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`

Recommended

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

add_student("Aaron", "10A")