Welcome to the forums @chrisw2209.
It’s always easier to diagnose these problems if you post a link to a live version of your code, at repl.it for instance, or if you post a code block as text instead of an image.
Your code is correct, but fails the test because the test is using a seed to start the random number generator and you are randomly selecting in a way that is different that the tests expect. The tests are expecting behaviour as is present in the
random.choice() method of selecting objects from a list. The tests work this way so that every program will generate the same list of random numbers so that the tests are easier to write. Also, the error message for the test you are failing is ambiguous as your code does generate two random items, just not the random items that the test expects.
For further information about this, just look in the forums for some of my other posts on this challenge.