human
Construct an array of first N natural numbers such that every adjacent pair is coprime | Function to construct an arrary with adjacent elements as co - prime numbers.
Iterate over the range [ 1 , N ].
Print i.
Driver Code"
How can the above be solved in Python?
assistant
#Here is code to construct an array of first N natural numbers such that every adjacent pair is coprime and the other steps required.
 def ConstArrayAdjacentCoprime ( N ) :
	for i in range ( 1 , N + 1 ) :
		print ( i , end = " ▁ " )
if __name__ == " _ _ main _ _ " :
	N = 6
	ConstArrayAdjacentCoprime ( N )