#!/usr/bin/env python3

# Write a program that prints out the position, frame, and letter of the DNA
# Try coding this with a single loop
# Try coding this with nested loops
"""
dna = 'ATGGCCTTT'
frame = 0
for i in range(len(dna)):
	
"""

dna = 'ATAGCGAATATCTCTCATGAGAGGGA'
"""
i = 0
for i in range(len(dna)):
	print(i, i % 3, dna[i])
"""
for i in range(len(dna)):
	for frame in range (4):
		frame = i % 3
	print(i, frame, dna[i])
"""
python3 24frame.py
0 0 A
1 1 T
2 2 G
3 0 G
4 1 C
5 2 C
6 0 T
7 1 T
8 2 T
"""

#!/usr/bin/env python3

# Write a program that prints out the position, frame, and letter of the DNA
# Try coding this with a single loop
# Try coding this with nested loops
"""
dna = 'ATGGCCTTT'
frame = 0
for i in range(len(dna)):
	
"""

dna = 'ATAGCGAATATCTCTCATGAGAGGGA'
"""
i = 0
for i in range(len(dna)):
	print(i, i % 3, dna[i])
"""
for i in range(len(dna)):
	for frame in range (4):
		frame = i % 3
	print(i, frame, dna[i])
"""
python3 24frame.py
0 0 A
1 1 T
2 2 G
3 0 G
4 1 C
5 2 C
6 0 T
7 1 T
8 2 T
"""

#!/usr/bin/env python3 # Write a program that prints out the position, frame, and letter of the DNA # Try coding this with a single loop # Try coding this with nested loops dna = 'ATGGCCTTT' frame = 0 for i in range(len(dna)): i = 0 for i in range(len(dna)): 	print(i, i % 3, dna[i]) python3 24frame.py 0 0 A 1 1 T 2 2 G 3 0 G 4 1 C 5 2 C 6 0 T 7 1 T 8 2 T