When you print multiple elements with print
the function already separates all of them by space, however, you have more appropriate ways to control the formatting of what you write on the screen.
One of them is using the latest f-string , provided you have a python version of 3.6 or higher:
print(f'{lista[-1]}, {lista[0]}')
It is more readable, especially if you have multiple values that you want to display, with specific formatting.
If you're working on an older version, you can use string format which is similar though not so intuitive:
print('{}, {}'.format(lista[-1], lista[0]))