counter = 0
cord =[1,2,21,12,2,44,5,13,15,5,19,21,5]
for i in cord:
if (counter ==0):
x=i
if (counter ==1):
y =i
if (counter ==2):
z= i
counter = counter+1
print(x,y,z)
Output
1 2 21
But I want output in pairs of 3. for example- (1,2,21) (12,2,44) like wise