$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #103
What is printed?
print('a-b-c'.split('-', 1))
['a', 'b-c']
['a', 'b', 'c']
['a-b', 'c']
['a']
The second argument caps how many splits are performed.
Play Problem Solving ▸
◂ #102
all Problem Solving — predict the output questions
#104 ▸