for i in range(5): print(i,end= ' ') code example Example: for i in range(0): print(i) for i in range(0): print(i)