Looping through a variable in a class to find the key in a dict : I want the user to type in a name "Jim" then a def function is called in a class to look through all the names in the dict matching "Jim".  If it finds the word "Jim" in the dict it will print out the value.  When I run the code it just says None.

    class Test(object): 
        def __init__(self, x=0): # So I don't get an error in (def find)
        self.x = x  

        c = None  # So I don't get an error while looping in the for loop
        users = {
            'John': 1,
            'Jim':  2,
            'Bob':  3
        }

        def find(self, x):  # The user is suppose to type in the name "x"

        for self.c in self.users:   # it goes through the dictionary 
            if x == self.users[self.c]: # If x is equal to key it prints worked
                print('worked')
        else:
            pass


    beta = Test()
    print(beta.find('Jim'))


