Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 3

72 bytes added, 10:31, 31 May 2017
PART 2 - Providing Functions With Arguments
square(12)
square(square(2))
</source>:#Providing more than one argument in a function requires the use of commas. Be careful NOT to provide strings or decimals, as you may cause errors.<br><br>:#Issue the following to declare the function '''sum_numbers()''':<source>
def sum_numbers(number1, number2):
return int(number1) + int(number2)
13,420
edits