What if you define a function with a name func? what will happen then? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

What if you define a function with a name func? what will happen then?

27th Jul 2016, 4:20 PM
Jan
Jan - avatar
3 Answers
+ 4
First, we know that the reserved word "def" is who indicates that will define a function. Then we call the function and specify the names of the input parameters. So if you define a function called "func", it will serve normally like any other name, since what defines the function is def not the name of this. List of reserved names: and, as, assert, break, class, continue, def, del, elif, else, except, finally, for, from, global, if, import, in, is, lambda, nonlocal, not, or, pass, raise, return, try, while, with, yield.
28th Jul 2016, 2:52 PM
Antônio Alexandre Neto
Antônio Alexandre Neto - avatar
+ 1
Nothing
30th Jul 2016, 12:14 AM
Narek Tonoyan
Narek Tonoyan - avatar
0
as said by Antonio ...
31st Jul 2016, 5:19 PM
sushant
sushant - avatar