As you know input returns a string.
listOfNums = input("Type Numbers ")
def calcR(num1, num2):
return 1 / ((1 / num1) + (1 / num2))
but here in reduce I need a list of numbers to place it in the function.
result = round(reduce(calcR, list(listOfNums)), 5)
If I run the app like that and type numbers in the input prompt I will have an error that tells me that you entered a string value and the function needs an integer value