Changes

Jump to: navigation, search

OPS435 Python Lab 3

1 byte removed, 19:24, 31 January 2019
PART 2 - Manipulating Items in Lists
== PART 1 - How User-Defined Functions are Declared and Run ==
:Functions may be designed :* '''not to accept arguments or return a value''', designed * to '''not accept arguments but return a value''', designed * to '''accept arguments and not return a value''', * or designed to '''both accept arguments and return a value'''. In this investigation, will we will focus of creating functions that either do NOT return a value, or return a value.
'''Functions and Strings'''
# Notice how the long line below is wrapped to fit on one screen:
print("List length is " + str(length_of_list ) + ", smallest element in the list is " + str(smallest_in_list ) + ", largest element in the list is " + str(largest_in_list))
</source>
1,760
edits

Navigation menu