79164407

Date: 2024-11-06 21:56:55
Score: 1
Natty:
Report link

The most straightforward way I could come up with is the join method for strings.

>>> a = ('x','y','z')
>>> print(f'{" ".join(a)}')
x y z

If your tuple elements aren't strings, they have to be converted (if possible).

>>> a = (0,-1,1)
>>> print(f'{" ".join(map(str, a))}')
0 -1 1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: moosemaimer