pairs = {0.25: 4 ** (-1),0.5: 2 ** (-1),} for i in pairs: print 'Expected %f, returned %f' % (i, pairs[i])
Standard input is empty
Expected 0.250000, returned 0.250000 Expected 0.500000, returned 0.500000
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!