How to get to a new line in Python Shell?
End lines with ;\
:
>>> x=3;\
... print x**5
243
>>>
Use the Ctrl-J key sequence instead of the Enter key to get a plain newline plus indentation without having IDLE start interpreting your code.
You can find other key sequences that make IDLE easier to use for this type of learning under the Options->Configure
IDLE menu.