Jan-03-2020, 07:19 AM
Your problem with commas clearly illustrates advantages of f-strings (3.6 <= Python) or .format method. Using placeholders makes writing much easier:
>>> a = 4 >>> b = 2 >>> f'{a}+{b}={a+b} and {str(a) + str(b)} is meaning of life' '4+2=6 and 42 is meaning of life'
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.