DEV Community

Rinkton
Rinkton

Posted on

1

Why function in Python declaring keyword "def"?

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.

Top comments (2)

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!

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay