DEV Community

Why function in Python declaring keyword "def"?

Rinkton on March 31, 2020

In programming language Python we can create functions, by writing before name of function "def". Why "def"? What's is meaning? Probably it is fool question, but I really don't know.

Collapse
 
eddex profile image
eddex

the def keyword is used to create or "DEFINE" a function :)
w3schools.com/python/ref_keyword_d...

Collapse
 
rinkton profile image
Rinkton

Got it. Thank you very much!