If I have a dict such as:

```
foo = {('foo', 45):5, ('bar', 34):3}

```

How can I check against part of that tuple?

```
if 'foo' in foo: #should be true
    pass
if 45 in foo: #also should be true

```

Or some other syntax.