The input of the array of sets:
[{"Bob","87"}, {"Mike", "35"},{"Bob", "52"}, {"Jason","35"}, {"Mike", "55"}, {"Jessica", "99"}]
However, if I immediately print it, the terminal shows me
[{'Bob', '87'}, {'35', 'Mike'}, {'Bob', '52'}, {'35', 'Jason'}, {'55', 'Mike'}, {'99', 'Jessica'}]
We can see some names are swapped with their corresponding numbers. Here are two problems:
Q1. How can we keep the list the same as the input?
Q2. If I run a for-loop for each element of the list, how can I quickly extract the numeric elements of each set?