Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

* pattern program in python


numbers = 10
for rowIndex in range(numbers):
    rowString = ''
    for columnIndex in range(numbers): #Same number of points
        #each row is equivalent to the previous row + 1 - use existing iterator
        rowString += str(columnIndex + rowIndex) + '	'
    print(rowString)

Source by codefantasy.org #
 
PREVIOUS NEXT
Tagged: #pattern #program #python
ADD COMMENT
Topic
Name
6+9 =