def rev_comp(str):
	"""
	Given a DNA string, returns the reverse complement
	
	>>> rev_comp("AATTGGCC")
	'GGCCAATT'
	"""
	rev_dic = {'A':'T','G':'C','C':'G','T':'A'}
	return ''.join([rev_dic[i] for i in str[::-1]])