Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 19 Online
OpenStudy (anonymous):

What is the difference between def and an assignment?

OpenStudy (anonymous):

They are different objects. Think about it this way: they are all fruits, because they came from Python's fruit basket, but they are different kinds of fruit, with different properties. Are you looking to a more precise answer?

OpenStudy (anonymous):

def is a specific keyword/statement for the beginning of a function definition

OpenStudy (anonymous):

def is shortened form of the word define.It is a keyword used to define functions like repeatIt( )[note parens].Assignment is a linking a value to some variable like x=8

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!