Ticker

6/recent/ticker-posts

Header Ads Widget

How To Find The Sum Of Elements In List In Python | Python Problem Program | Take List Input | 2020

How To Find The Sum Of Elements In List In Python | Python Problem Program | Take List Input | 2020



Hello friends in this todays video we are going to see that how we can add the elements of list in python in hindi. And the interesting thing is that, we are going to take the list input from user. Watch this video till end so you can easily write it by own. Hope you all enjoy this video. If yes, then please like the video as well as subscribe to Tech Codno.


Hello dosto iss video mai hum dekhne ja rahe hai ki kaise hum log list ke elements ka sum nikale python programming language ke ander. Aur sabse majedar baat ye hai ki hum kaise list ka input user se lenge. Iss video ko pura dekhiye ga taki app bhi iss program ko aasani se likh sake. Mujhe ummeed hai ki apko ye video pasand aayegi. Agar aaye hai toh iss video ko like kar dena aur Tech Codno ko subscribe bhi kar dena.


नमस्कार दोस्तों आज के इस वीडियो में हम यह देखने जा रहे हैं कि हम python में list के elements को कैसे जोड़ सकते हैं। और दिलचस्प बात यह है कि, हम user से lists इनपुट लेने जा रहे हैं। इस वीडियो को अंत तक देखें ताकि आप इसे आसानी से लिख सकें। आशा है कि आप सभी इस वीडियो का आनंद लेंगे। अगर हाँ, तो कृपया वीडियो को लाइक करें और साथ ही Tech Codno को सब्सक्राइब करें।



Watch This Video For Tutorial:





Source code:

# li  = [1,2,3,4,5]

li = []
s = ""

while(s != "q"):
    try:
        s = input("Enter the number: \n")
        li.append(int(s))
    except:
        pass

sums = 0

# alternative way is "sums = sum(li)"

for i in li:
    sums += i

print(sums)


Related Questions:


how to find the sum of elements in list in python,

python list functions,

python list,

python list tutorial,

python list tuple dictionary,

python list programming exercise,

array sum,

python program,

list in python,

list,

list programming,

list program in python,

list program in python in hindi,

sum of elements in list,

find sum of elements in an array,

how to find sum of list in python using for loop,

python for loop sum list,

python programming,

python list program,
tutorial


Thanks For Reading


Post a Comment

0 Comments