Module not working. Getting TypeError

https://app.dataquest.io/c/64/m/369/advanced-regular-expressions/5/using-lookarounds-to-control-matches-based-on-surrounding-text

My Code:

print("Hello World")

What I expected to happen:
Just print Hello World

What actually happened:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-fb1c7aebe012> in <module>
----> 1 print("Hello World")

TypeError: 'Series' object is not callable

When I assign x = 2 there are no variable previews below either. It’s just blank.

Pretty sure something is funky with the VM. I tried a couple practice problems and they were fine.

This is what happens when I assign a random int to the variable c_mentions and hit submit.

Is this still happening to you? My guess is that you assigned a series object to print, overwriting the built-in function.

Since you reported this one day ago, the code runner has probably died and everything should be reset, so it should be good.

1 Like

There’s nothing weird here. We expect it to be int64, but you assigned and int.

1 Like

It is not happening anymore. I guess it just needed to reset. Is there a way to manually do that myself in case it happens again in the future?

And yes the int64 vs int I assigned makes sense. Thank you.

In this particular instance, you can run del print. It will delete the content of print, but since print is a built-in function, it can’t not exist, so it reverts back to its original value.

1 Like