LearnPy Hub
← Classes & Objects problems
Easy

A Method Calls a Method

Write class Box with length, width and height, a method base() returning length × width and a method volume() that uses self.base(). Read three integers and print the volume.

Input

Three integers.

Output

One integer.

Sample 1

Input
2
3
4
Output
24

Sample 2

Input
1
1
1
Output
1
solution.py
Output appears here
A Method Calls a Method · Python practice problem · LearnPy Hub