I have a list of Ordered pair in python like [(1,45),(21,28),(43,110),(4,81)] and I want to reverse each items in list like [(45,1),(28,21),(110,43),(81,4)]. what should I do?
[(1,45),(21,28),(43,110),(4,81)]
[(45,1),(28,21),(110,43),(81,4)]
python python-3.x
python ×1
python-3.x ×1