I have a simple problem that i cannot solve. I have a dictionary:
aa = {'ALA':'A'}
test = 'ALA'
I'm have trouble writing code where that value from test is taken and referenced in the dictionary aa and 'A' is printed.
I'm assuming i would have to use a for loop? something like...
for i in test:
if i in aa:
print i
I understrand how to referenced a dictionary:
aa['ALA']
Its taking the value from i and using it to reference aa i am having trouble with.
Thanks
James