I have a list of tuples:
ls = [('hello', 'there'), ('whats', 'up'), ('no', 'idea')]
I want to reverse the order of each tuple in the list.
ls = [('there', 'hello'), ('up', 'whats'), ('idea', 'no')]
I know tuples are immutable so I'll need to create new tuples. I'm not really sure what's the best way to go about it. I could change the list of tuples into a list of lists, but I'm thinking there might be a more efficient way to go about this.