You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

371 B


When Python knows what you meant

Requires python 3.6 and above.

Usage example:

>>> import yes
>>> print 3
  File "<stdin>", line 1
    print 3
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(3)?
>>> yes
>>> print(3)    # <-- Automagically inserted

It will automagically do what you meant :^)