Hi consider this code below:
DNA = "ACTGATCGATTACGTATAGTATTTGCTATCATACATATATATCGATGCGTTCAT"
lenght_DNA = len(DNA)
print ("lenght:" + str(lenght_DNA))
a_count = DNA.count('A')
print ("A-count:" + str(a_count))
t_count = DNA.count('T')
print ("T-count:" + str(t_count))
AT_content = (a_count + t_count)/(lenght_DNA)
print ("AT_content:" + str(AT_content))
In Python 2 the final print gives 0 in python 3 a correct decimal number like 0.63blabla. How do i get the same behavior in Python 2?