Aug-25-2019, 07:47 PM
If oneliners are your thingy then one can also do:
>>> my_string = ('go') >>> my_list = [1, 2, 3, 4] >>> print('\n'.join([f'{my_string} {item}' for item in my_list])) go 1 go 2 go 3 go 4
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.