LearnPy Hub
← Functions problems
Easy

Return Two Values

Write rect(w, h) that returns the area and the perimeter as a tuple. Read w and h and print both on one line.

Input

Two integers.

Output

area perimeter

Sample 1

Input
3
4
Output
12 14

Sample 2

Input
1
1
Output
1 4
solution.py
Output appears here
Return Two Values · Python practice problem · LearnPy Hub