How do I create a line-break in Terminal?

后端 未结 6 2232
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-08 05:48

I\'m using Python in Terminal on Mac OSX latest. When I press enter, it processes the code I\'ve entered, and I am unable to figure out how to add an additional line of code e.g

6条回答
  •  执笔经年
    2021-02-08 06:33

    I was always getting those three dots again and again and could not close it . Its actually Line break and works with 2 ENTER. I did it I tried giving two times ENTER key and it worked .

    >>> primenumlist = [2,3,5,7,11,13,17,19,23,29]
    >>> for i in primenumlist:
    ...  print (i)
    ...
    2
    3
    5
    7
    11
    13
    17
    19
    23
    29
    >>>
    

提交回复
热议问题