I started learning python and while trying some exercises on codewars it stumbled upon the following solution:
pairs = {'A':'T','T':'A','C':'G','G':'C'}
def DNA_strand(dna):
return ''.join([pairs[x] for x in dna])
Now what exactly does return ''.join
do?