how to find the sum of number on python code example
Example: python sum of 10 numbers from user input
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))