0
Why I need to put def my_func to start a code and to end with ?
def my_func(): print("spam") print("spam") print("spam") my_func()
4 Antworten
0
At first you’ve defined, then you called it
0
but why I need to call it ? we have not call before while working with other functions
0
It’s not necessary to call it. If you need the functionality of your function then you call it.
0
got it. Btw thanks a lot 😊Eterxoz