MCPcopy Create free account
hub / github.com/geekcomputers/Python / multiply

Method multiply

Calculator with simple ui.py:36–48  ·  view source on GitHub ↗

This function multiplies two numbers. Examples: >>> multiply(4, 2) 8 >>> multiply(3, 3) 9 >>> multiply(9, 9) 81

(self, num1, num2)

Source from the content-addressed store, hash-verified

34 return num1 - num2
35
36 def multiply(self, num1, num2):
37 """
38 This function multiplies two numbers.
39
40 Examples:
41 >>> multiply(4, 2)
42 8
43 >>> multiply(3, 3)
44 9
45 >>> multiply(9, 9)
46 81
47 """
48 return num1 * num2
49
50 def divide(self, num1, num2):
51 """

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected