Python Forum
Input as function parameter - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Input as function parameter (/thread-16651.html)



Input as function parameter - dan789 - Mar-08-2019

When we have a function like this:

def function(param1, input=""):
    ...
What´s the variable of that input? How can I use it´s value inside that function?


RE: Input as function parameter - Larz60+ - Mar-08-2019

input is a python builtin_function_or_method class, and should never be used as an attribute this way.
Rename input to xinput or some other name, and change where it is used in the function as well.