Open main menu

CDOT Wiki β

Changes

OPS435 Python3 Lab 3

11 bytes added, 11:41, 25 September 2019
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()
1,760
edits