Answers for "create 5 numbers that sum up to 1 python"

7

sum of 2 numbers in python

a = int(input("Enter first number:"))
b = int(input("Enter second number:"))
sum = a+b
print(sum)
Posted by: Guest on March-06-2020
0

count numbers that add up to 10 in python

# print numbers that add up to 10. (19 => 1 + 9 = 10)

x = 0

for i in range(100):
	for j in str(i):
		x+=int(j)
        
	if x == 10:
		print(i)
	x = 0
#															- sabz
Posted by: Guest on July-14-2021

Code answers related to "create 5 numbers that sum up to 1 python"

Python Answers by Framework

Browse Popular Code Answers by Language