Message from Python discussions

December 2018

— Result:

['test\xa0test'
]

— 

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

— Https://www.biob.in/2018/04/simple-server-and-client-chat-using.html

— 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:

split(...)
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.

None

Message permanent page

— Where is the error?

— The space after else)

— Else: