Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print range

# Generate numbers between 0 to 6
for i in range(6):
    print(i)

# Generate numbers between 1 to 10
for i in range(1,11):
	print(i)

# Generate numbers between 1 to 10 and print them in a single line
print( *range(1,11) ) 
 
PREVIOUS NEXT
Tagged: #python #print #range
ADD COMMENT
Topic
Name
5+1 =