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…


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:

# 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__':

Let me know if you have any other questions!


1 Like

thanks lorraine excelent :slight_smile:

1 Like