Most of the solutions I've come across involve joining items within a list, but my question is about joining an item from a list of strings with another string outside of the list.
In the script below, the desired output is "USD.JPY.SPOT.SPR"
as a string, and then the subsequent pairings.
I've tried pairing.join(".SPOT.SPR")
and pairing+".SPOT.SPR"
but they've not generated the desired output.
pairings = ["USD.JPY", "USD.HKD", "AUD.USD", "EUR.USD", "GBP.USD", "USD.SGD"]
for pairing in pairings:
print(pairing.join(".SPOT.SPR"))