Ad
  • Custom User Avatar
  • Custom User Avatar

    The order is not "weird" it's sorted by key - values of each pair. But it's true it's not specified. Read the posts below.

  • Default User Avatar

    Python:Random tests don't work properly.For example, Testing for {2: -1, 'b': -8, 'y': 1, 0: -4, 'x': 9, 'a': -4, 1: 7}
    '2 = -1,b = -8,y = 1,0 = -4,x = 9,a = -4,1 = 7' should equal '0 = -4,1 = 7,2 = -1,a = -4,b = -8,x = 9,y = 1'. My answer is in that order which is given but system demands a totally different order which is very wierd as nothing is said about it in the instructions and all basic tests answers are in a given order. Moreover, the order which system demands always changes. For instance, here is another random test with another weird order: Testing for {'b': -8, 'a': 3, 0: 1, 1: -1, 'x': 7, 'z': -5}
    'b = -8,a = 3,0 = 1,1 = -1,x = 7,z = -5' should equal '0 = 1,1 = -1,a = 3,b = -8,x = 7,z = -5' .