pythonpython-idle

How to get to a new line in Python Shell?


I want to write the following two lines on the console:

x = 3

print x**5

But when I type x = 3, I press enter, it then executes the assignment. How to get it to execute only after typing the second line?


Solution

  • End lines with ;\:

    >>> x=3;\
    ... print x**5
    243
    >>>