Asking here for help with an error I am getting in a class assessment

No matter how format my my code, It will not assert that “first_chars” is a str.

I have tried to contact the admins of the class, but they are being slow.

Is there something I am missing?

f = open('assets/travel_plans.txt', 'r')
    first_chars = f.read(33)
print(first_chars)
print(type(first_chars))
assert type(first_chars) == str, "first_chars is not a string"
assert len(first_chars) == 33, "first_chars is not assigned the correct length"
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
Cell In[23], line 1
----> 1 assert type(first_chars) == str, "first_chars is not a string"
      2 assert len(first_chars) == 33, "first_chars is not assigned the correct length"

AssertionError: first_chars is not a string

Always restart the kernel and run the cells in order. (Do this regularly and often to avoid issues of the hidden state.)
You have missing cells here and so we cannot be sure what you did elsewhere.