Quiz Catalog

Catalog of quizzes

txt = "hello, my name is Peter, I am 26 years old"
x = txt.split(", ")

print(x)
['hello', 'my name is Peter', 'I am 26 years old']
  • string/operation/split

txt = "apple#banana#cherry#orange"
x = txt.split("#", 1)

print(x)
['apple', 'banana#cherry#orange']
  • string/operation/split