4 ms·
I never knew you could do that. You don't need the continuation though. >>> l = ["A", "c""d"] >>> l ['A', 'cd']
by yeukhon 13y ago
I never knew you could do that. You don't need the continuation though.
>>> l = ["A", "c""d"]
>>> l
['A', 'cd']
- mark-r 13y agoYou don't need the continuation, but that's where you're most likely to make the mistake. It'll catch you when you leave off the comma from the last element of the list, then go back later and add another element to the end.
- yeukhon 13y agoSorry, I am not followed. Can you show it instead? Thanks!
- ColinWright 13y agoYou need to re-format that with leading spaces to retain the indentation.