DEV Community

Discussion on: String to Integer program

Collapse
 
amanlalwani007 profile image
amanlalwani007

N=int(input("no of words"))
A=[]
for _ in n:
word=str(input())
A.append(int(word.split('=')[1]))
print(sum(A))

Collapse
 
phinance profile image
Phinance

Wow, so simple and beautiful, thanks