+ 1
How can i print 1 2 then 2 3 and onward without using 'and ' 'or' operator
It means I want to print 1 2 , 2 3 , 3 4 and further but with 'and' 'or' operator code is getting bigger is their any other method to do this
2 Respostas
0
Vishal Pandey
For i in range(5) #or any number you want
Print(str(i)+' '+str(i+1))
It works for me