Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART ================================ >>> >>> ================================ RESTART ================================ >>> >>> countA("ATTAGCGAGGAT34") 4 >>> print("Hello") Hello >>> countA(123) Traceback (most recent call last): File "", line 1, in countA(123) File "F:\PhDTBF\Comp.Think.4.Bio\1Python basics\basics1\basics_countA.py", line 4, in countA for base in dna: TypeError: 'int' object is not iterable Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART ================================ >>> >>> GC_content("ATTAGTCGCGAT") 41.666666666666664 >>> GC_content(4565) Traceback (most recent call last): File "", line 1, in GC_content(4565) File "F:\PhDTBF\Comp.Think.4.Bio\1Python basics\basics1\basics_CG.py", line 16, in GC_content A = dna.count("A") AttributeError: 'int' object has no attribute 'count' >>> GC_content("4565") Traceback (most recent call last): File "", line 1, in GC_content("4565") File "F:\PhDTBF\Comp.Think.4.Bio\1Python basics\basics1\basics_CG.py", line 20, in GC_content return 100*(C+G)/(A+T+C+G) ZeroDivisionError: division by zero >>> ================================ RESTART ================================ >>> #countA with and without functions please enter a dna sequence ATGGTAC 42.857142857142854 End1 #before definition of function End2 #after definition of function >>> ================================ RESTART ================================ >>> please enter a dna sequence ATTAGAC 28.571428571428573 End1 End2 >>> GC_content("AGGCGT") CG function 66.66666666666667 >>> >>> 2**0.5 1.4142135623730951 >>> 9**0.5 3.0 >>> 2**2 4 >>> 0.6**2 0.36 >>> ================================ RESTART ================================ >>> >>> state(23, 34, 36, 80) Liquid >>>