Answers for "digits of a number in python"

3

for each digit in number python

for digit in str(n):
  print(int(digit))
Posted by: Guest on October-15-2020
2

sum of any numbers in python

sum(list(map(int,input().split())))
Posted by: Guest on December-02-2020

Code answers related to "digits of a number in python"

Python Answers by Framework

Browse Popular Code Answers by Language