| 12345678910111213 |
- import os
- def calcRectangleCircumference(x, y):
- "Calculates area of a rectangle based on passed width and height"
- area = (x * 2) + (y * 2)
- return area
- # Clear screen
- os.system("clear") # Mac or Linux
- # os.system("cls") # Windows
- # Call function calcRectangleCircumference and print results
- print(calcRectangleCircumference(2,3))
|