Jun-07-2020, 05:46 AM
Hi,
I want to find sqrt of 6 input numbers and append the result in lst (an empty array), Not able to pass multiple input in a function
I want to find sqrt of 6 input numbers and append the result in lst (an empty array), Not able to pass multiple input in a function
from math import sqrt def lists(): x = input("Enter six value: ").split() lst = [] for i in x: math.sqrt(i) lst = lst.append(i) print(lst) print(type(ele)) return lst list()Please your support