It hurts readability to redefine the meaning of well-known builtins such as 'input', and pylint rightfully warns about this, saying W: 1,12: Redefining built-in 'input' (redefined-builtin) It's a little unfortunate that Python grabs this part of the namespace, but let's fix the issue by using a different word for 'the input text'.
3 lines
31 B
Python
3 lines
31 B
Python
def reverse(text=''):
|
|
pass
|