Help me, please. I am meeting the TypeError: ‘set’ Object Is Not Subscriptable In Python

Here is my code: When I run this code, I get the above error. Help me, please. Thanks!