0

Python programming

In python programming What does "def" stand for ? When creating a function

23rd Apr 2020, 5:23 AM
kojo Justine
kojo Justine - avatar
3 Antworten
0
It is just the standard keyword or reserved word to define a function or method
23rd Apr 2020, 6:10 AM
Diego Lesmes
Diego Lesmes - avatar
0
def is keyword which defines functions and methods def test(): pass #this is function class Test: def test(self): pass #this is method What's more, all definitions are evaluated before script is run, so all code defined in definition will be run: def fun(x=print('test')): pass #output: test
23rd Apr 2020, 7:49 AM
Piotr Szajer
Piotr Szajer - avatar