When printing multiple elements with print
the function already separates all of them by space, however, you have more appropriate ways of controlling the formatting of what writes on the screen.
One of them is using the latest f-string, provided you have a python version equal to or greater than 3.6:
print(f'{lista[-1]}, {lista[0]}')
It is more readable, especially if you have several values you want to display, with specific formatting.
If you are working on an older version you can use string format which is similar yet not so intuitive:
print('{}, {}'.format(lista[-1], lista[0]))
Thank you very much!
– Matheus Andrade