TypeError: translate() takes exactly one argument (2 given)

Typeerror: translate ()

Note: tokens = str (caption). Low(). Translate (none) Punctuation ) strip(). Split ()

Cause:

Python 2 under normal.

There are a number of translators in Python 3.

Revision:

Trans = Str.maketrans {key: none for key in} Punctuation ]

Tokens = str (caption). Low(). Translate (trans). Stripl(). Split ()

Completion

Read More: