Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Concatenation of two range() functions

# welcome to softhunt.net
from itertools import chain

# Using chain method
print("Concatenating the result: ")
res = chain(range(6), range(6, 20, 2))

for i in res:
	print(i, end=" ")
print()
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Concatenation #functions
ADD COMMENT
Topic
Name
1+6 =