Horje
count numbers that add up to 10 in python Code Example
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




Python

Related
# remove punctuation Code Example # remove punctuation Code Example
pandas show head and tail Code Example pandas show head and tail Code Example
subtract 2 datetime objects django Code Example subtract 2 datetime objects django Code Example
Problems with flask bootstrap Code Example Problems with flask bootstrap Code Example
how to make a square shape in python Code Example how to make a square shape in python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8