RNA_dictionary = {'A': 1, 'U': 2, 'C': 3, 'G': 4}
RNA_integers = []
for i in RNA_list:
    if i in RNA_dictionary:
        RNA_integers.append(RNA_dictionary[i])
print(RNA_integers)
Storing a collection of integers in a list