You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
numbers=[int(num) for num in input_n.split()] #The split() method splits the string into a list of strings, where each string is a substring of the original string that is separated by a whitespace character.
result=avg(numbers) #The int() function converts each string in the list to an integer
print("Avarage is:",result)'''
def avg():
number = input("Enter numbers separated by spaces:")