Skip to content

Commit

Permalink
Basic
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjanaPurbia authored Sep 25, 2021
1 parent 5a05e13 commit ff5c1ce
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions listSum.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
lst=input("Enter the no :")
lst=list(lst)
print("The list is:",lst)
sum1=0
for i in lst:
sum1+=int(i)
print("The sum is:",sum1)

0 comments on commit ff5c1ce

Please sign in to comment.