s = "[('a', 2), ('b',3), ('c',5)]"print(eval(s))
Standard input is empty
[('a', 2), ('b', 3), ('c', 5)]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!