Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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
Comment

PREVIOUS NEXT
Code Example
Python :: pyglet key hold 
Python :: macos youtube-dl unable to get local issuer certificate _ssl.c:1131 
Python :: jupyter notebook do not show matplotlib text above plot 
Python :: python set prcess name 
Python :: pyqt highlight all occurrences of selected word qt 
Python :: find root of the path of file os package 
Python :: what modules are used for NLG in python 
Python :: python token stealer 
Python :: colab erase recycle bin drive 
Python :: Python[17586:513448] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to 
Python :: pyubx 
Python :: demploy django in vps 
Python :: df.isna percentage 
Python :: standardscalar 
Python :: how can i display the context data returned by the view in the template 
Python :: Custom RGB To Hex Conversion with Python 
Python :: how to connect smartphone camera to opencv python 
Python :: python threadpool map exception 
Python :: normalize a distribution plot 
Python :: Python Tkinter MenuButton Widget Syntax 
Python :: How to Loop Through Tuples using while loop in python 
Python :: The float type in Python3 can represent decimal 0.1 without error. 
Python :: Class based Django rest framework 
Python :: how to clear formatting in python 
Python :: how to print tic tac toe border on terminal in python 
Python :: reduce size of list 
Python :: data structures in python 
Python :: python list chunks using yield 
Python :: how to download a website using python 
Python :: function print(text, times) 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =