def getScreen(screen):
 screens = getScreens()
 if (screen > (len(screens) - 1)):
  msg = 'Requested refresh rate of screen %i, but only have %i screens.'
  raise IndexError((msg % (screen, len(screens))))
 return getScreens()[screen]

def getScreen ( screen ) : screens = getScreens ( ) if ( screen > ( len ( screens ) - 1 ) ) : msg = 'Requested refresh rate of screen %i, but only have %i screens.' raise IndexError ( ( msg % ( screen , len ( screens ) ) ) ) return getScreens ( ) [ screen ]
select screen from getscreens() .