0

Sooo do u have to space for all functions?

sooooooo do you have to space for all functions?

7th Dec 2016, 2:46 AM
Giovanni Arriola
Giovanni Arriola - avatar
1 Answer
+ 4
Not sure as to what you mean by "space for all functions" but if you're referring to the indenting of the suite(body) then yes. Functions must be created with the 'def' keyword followed by the name of said function and then a set of parenthesis with optional parameters, once that's done then you're to end that with a colon, a newline that's indented. def some_function(): statement statement statement The layout for functions is right above. The definition of the function is known as the header while everything that's after the colon and is within the indented block is the suite(it means body but in Python we call it a suite )...Now hopefully this answered your question...
7th Dec 2016, 3:00 AM
Don
Don - avatar