FaDaQ

Untitled

Mar 2nd, 2022 (edited)
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. def sumForEveryNums(num):
  2.     sum = 0
  3.     for i in num:
  4.         sum += int(i)
  5.     return sum
  6.  
  7.  
  8. num = input("Введите число: ")
  9. print(sumForEveryNums(num))
Add Comment
Please, Sign In to add comment