def getGroup():
	"""
	Request the list of groups for the property.  Print out
	how many groups there are, then use the first group where
	the test property lives.

	"""
	print
	print "Requesting the list of groups for this property"

	groups_result = getResult('/papi/v0/groups')

	print "There are %s groups associated with the account:" % len(groups_result['groups']['items'])
	print (groups_result['accountName'], groups_result['accountId']) % "    %s (%s)"

	group = groups_result['groups']['items'][0]
	groupId = group['groupId']
	groupName = group['groupName']
	print
	print "Using group %s (%s)" % (groupName, groupId)

	# Use the first contractId for requests, will work fine
	contractId = group['contractIds'][0]
	print "Using contract ID %s" % (contractId)
	print

	return (groupId, contractId)
dataset/ETHPy150Open akamai-open/api-kickstart/examples/python/papi_prefetch_toggle.py/getGroup/swapped operands of `%`