Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

36 bytes removed, 12:56, 2 June 2017
PART 1 - Providing Functions With Arguments
print(operate(10, 5, 'subtract'))
print(operate(10, 5, 'multiply'))
print(operate(10, 5, 'divide'))
</source>
:::*The operate() function should use '''logic''' statements<br> &nbsp; '''FYI:''' Remember that you MUST consistently '''indent ALL code''' for within each logic section (or test): otherwise, it may not allow the logic statement to work correctly.
13,420
edits