I want to write such a structured command in multiple lines
for i in range(10):
if i > 2:
print(i)
else:
print("else")
However, it break automatically
In [58]: for i in range(10):
...: if i > 2:
...: print(i)
3
4
5
6
7
8
9
I think it is facile to write as shell script in terminal
$ for i in 1 2 3
→ do echo $i
→ done
1
2
3
How could I set the ipython to control multiple lines input?