the code I have made can prove as a new type of arguments for the python community
I think we can use it as a built-in decorator for new type function argument
user Input Function
def userInputMethod(func):
def innerMethod(*args):
outPutList = []
args = input()
args = list(args.split())
for i in args:
if "." in i:
i = float(i)
outPutList.append(i)
elif i.isalpha():
outPutList.append(i)
elif i.isnumeric():
i = int(i)
outPutList.append(i)
return func(outPutList)
return innerMethod()
@userInputMethod
def funOne(a):
return a
print(funOne)
Output: