In: Computer Science
Here is the code:
f = open ("NC_045512.2.fna")
f.readline() # Ignore the header
c = f.readlines ()
l = ""
for e in c:
l += e.strip()
print (len(l))
#--- E N D O F C O D E
29903
...Program finished with exit code 0
The NCBI site also shows 29903 as the number of bps, confirming above answer:
Severe acute respiratory syndrome coronavirus 2 isolate Wuhan-Hu-1, complete genome
Severe acute respiratory syndrome coronavirus 2
29,903 bp genomic sequence