Message from Python discussions

December 2018

— Or van der


splitting text to get names are really tricky, that's why it's preffered to ask and save that data in separate variables rather that just one long variable

— Https://

— Yeah.

— By using the "split" function using the " " character. Something like s2 = s.split(" ")

*Note, that there is a space in quotation marks, not just an empty string.

Message permanent page

— Then use ', '.join(text) to output the words in splitted

— Language:


from decimal import Decimal
a = Decimal("2018.12")
b = Decimal("2018")


Message permanent page

— .split(" ") and .split() are basically the same

— I second

— Why tho?

— To remove the square braces and make the output look more better

— Why?