Attribute Error

I don’t know why it doesn’t work
I did an AttributeError but it is bad, it didn’t check good but the others were checked as good…

https://nt.dev/s/0f377c530237

Hi,

The task requires you to use the forceError() function that was given to you (just like the previous task).

To make your code pass the check, you can use return string.dict(). The following is a possible solution using your example:

Solution
# Import your modules here
import string


def forceError():
    # Your code here
    # Use the function return to force an error
    return string.dict()

# Use this code to test your function
if __name__ == '__main__':
    forceError()

Let me know if you have any other questions!

Best,
Lorraine

1 Like

thanks lorraine excelent :slight_smile:

1 Like