Print empty line?

后端 未结 7 846
青春惊慌失措
青春惊慌失措 2020-12-25 12:37

I am following a beginners tutorial on Python, there is a small exercise where I have to add an extra function call and print a line between verses, this works fine if I pri

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-25 12:46

    The two common to print a blank line in Python-

    1. The old school way:

      print "hello\n"

    2. Writing the word print alone would do that:

      print "hello"

      print

提交回复
热议问题