append all elemtns of list in python code example
Example: python add all elements of a list
lst = []num = int(input('How many numbers: '))for n in range(num): numbers = int(input('Enter number ')) lst.append(numbers)print("Sum of elements in given list is :", sum(lst))