How do i run ipython with multiple indendation like the picture bellow?

When I press enter it does not run, it keeps on showing . . . :
How do I run it?

Thanks in advance

I feel like this code should be throwing a syntax error on line 4 or 5. What are you using to run your code? I’m guessing an online IDE?

Take a look at your first print() It is missing something rather important.

I am using ipython. On your terminal run:

1 Like

Follow @8-bit-gaming’s advice to hunt down the issue. The prompt doesn’t know you’ve finished due to a problem with the syntax.

For reference IPython is third-party and you’d need to install it before using in from the terminal.

1 Like