I don't understand what the question is asking

I’m not sure what #1 is asking when is says ‘directed should be defaulted to False’, and how do I set up the constructor?


1 Like

Are you familiar with default arguments in Python?

def hello(name = "world"):
    return "Hello, {}!".format(name)

print(hello())   # No argument specified; default will be used
print(hello("Jacob"))   # Argument specified, so default is overridden

# Output:
Hello, world!
Hello, Jacob!

directed will be an argument in the constructor, initiated like any other, but with a default of False specified just as with hello(), above…

1 Like