1,760
edits
Changes
→PART 1 - Function that does not take argument or return value
print('Stuff return from hello():',my_stuff)
print('the object my_stuff is of type:',type(my_stuff))
</source>You can assume that there is a hidden '''return''' statement at the end of any function if it does not have on one implicitly.The following python script should produce that the same result as the one above:<source lang="python">
def hello():
print('Hello World')
print('Inside a Function')
return
my_stuff = hello()