• text.translate() is't working

Question related to mission House Password


Hello, I'm new here but I can't understand why string.translate isnt' working.

I have a such error when i'm trying newtext = text.translate(string.maketrans("",""), string.punctuation)

TypeError: translate() takes exactly one argument (2 given) checkio, 6 <module>, 17

it is working in my idle, but not here.

How can i fix that? Thank you!