May-31-2019, 08:34 AM
If you are using Pythor 3.6 or later you may consider taking advantage of f-strings which makes constructing strings more natural (and subjectively more beautiful). No commas or pluses and fragmented strings, just placeholders in one string:
>>> health = 200 >>> greeting = 'welcome to my adventure game.' >>> username = 'bob' >>> print(f"Hello {username.title()}, {greeting}") Hello Bob, welcome to my adventure game. >>> print(f"Your starting health is {health}") Your starting health is 200
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.