Guest User

Untitled

a guest
Dec 3rd, 2019
94
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. hits = 0
  2.  
  3. input_sequence = 'ACCAATTCCTTTCGGTG'
  4. search_sequence = 'AAAGGG'
  5.  
  6.  
  7. if input_sequence.find(search_sequence) != -1:
  8. print("Yes, entirely")
  9. else:
  10. input_sequence = list(input_sequence)
  11.  
  12.  
  13. for letter in search_sequence:
  14. for c, v in enumerate(input_sequence):
  15. if letter == v:
  16. input_sequence = input_sequence[c+1:]
  17. hits += 1
  18. break
  19.  
  20. if hits == len(search_sequence):
  21. print("Yes, in parts")
  22. else:
  23. print("No")
RAW Paste Data