mardi 29 septembre 2020

Can you check where I went wrong? Sharing my syntax [closed]

for nuc in DNA:
  if nuc == "A": 
    A_count = A_count+1
  print(A_count)
  elif nuc == "T": 
    T_count = T_count+1
  print(T_count)
  elif nuc == "G": 
    G_count = G_count+1
  print(G_count)
  elif nuc == "C": 
    C_count = C_count+1
  print(C_count)
  else:
    print("na")

Aucun commentaire:

Enregistrer un commentaire