Quiz Catalog

Catalog of quizzes

txt = "Thank you for the music\nWelcome to the jungle\n"
x = txt.splitlines()

print(x)
['Thank you for the music', 'Welcome to the jungle']
  • string/operation/splitlines

txt = "Thank you for the music\nWelcome to the jungle"
x = txt.splitlines(True)

print(x)
['Thank you for the music
', 'Welcome to the jungle']
  • string/operation/splitlines