Open main menu

CDOT Wiki β

Changes

OPS435 Python3 Lab 3

1 byte added, 15:57, 19 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 implicitly.The following python script should produce that same result as the one above:<source lang="python">
def hello():
print('Hello World')
1,760
edits