Tengo una duda
Si yo tengo una variable definida como "edit_task = 2 "y quiero crear una función "def edit_task()" ¿Si puedo hacerlo o deben ser nombres diferentes?
Si yo tengo una variable definida como "edit_task = 2 "y quiero crear una función "def edit_task()" ¿Si puedo hacerlo o deben ser nombres diferentes?
Si yo tengo una variable definida como "edit_task = 2 "y quiero crear una función "def edit_task()" ¿Si puedo hacerlo o deben ser nombres diferentes?
Si yo tengo una variable definida como "edit_task = 2 "y quiero crear una función "def edit_task()" ¿Si puedo hacerlo o deben ser nombres diferentes?
Can a function and a variable have the same name? So finally, the answer is yes you can declare variable of same name as that of function but you shouldn't since you may get an error or a warning message by the compiler.
Can a function and a variable have the same name? So finally, the answer is yes you can declare variable of same name as that of function but you shouldn't since you may get an error or a warning message by the compiler.
Can a function and a variable have the same name? So finally, the answer is yes you can declare variable of same name as that of function but you shouldn't since you may get an error or a warning message by the compiler.