+ 1
Why does it print none
def my_func(): print("spam") print("spam") print("spam") print(my_func())
3 ответов
+ 2
Because your function has no return statement hence it will return "None" by default
+ 2
wonder nature
my_func() will do, you need not put it inside a print statement. Also since it is similar to print(print()), hence it returns None.
0
What is void function