Message from Python discussions

December 2018

— Result:



Strictly talking, yes, but in the context he were talking, just spliting words separated by 1 space, it's the same

— Https://

— Try help(str.split)

— Oh

— !!eval 'test test'.split(" ")


answer : ['test', 'test']

— Maybe show us the model and give more context?

— Result:

Help on method_descriptor:

S.split(sep=None, maxsplit=-1) -> list of strings

Return a list of the words in S, using sep as the
delimiter string. If maxsplit is given, at most maxsplit
splits are done. If sep is not specified or is None, any
whitespace string is a separator and empty strings are
removed from the result.


Message permanent page

— Where is the error?

— The space after else)

— Else: