Ответсообщение недоступно
If you haven't worked with loops yet, then this is correct. however you can improve it:
a = 1
print(a, a^0, a^1, a^2, a^3)
a += 1
print(a, a^0 , a^1, a^2, a^3)
a += 1
...
This looks a little more algorithmic and it is basically what a loop does. So when you learn about loops you'll be able to implement this with loops.