Syntax explanation


#1

Hi Codecademy,

Whats the difference between:

dna_sample.read_dna()

and

read_dna(dna_sample)

Thanks,

Eric


#2

dna_sample.read_dna() calls read_dna() method, while read_dna(dna_sample) is a function call with dna_sample as argument

how familiar are you with classes?


#3

Hi stetim94,

I just finished the classes segment of python, and now I am working on the final project. Im quite new to programming and I appreciate the explanation. Indeed understanding how the different parts of code connect to each other is really important. Im going to keep working on this.

Thanks,

Eric