Update code example now that discover() returns a set

The example on the web page uses an index into a list but the current code for discover() returns a set.

This is a suggested fix.