Ad
Code
Diff
  • class cube:
        def __init__(self, a, b, c):
            self.a = a
            self.b = b
            self.c = c
            
        def volume(self):
            return self.a*self.b*self.c
    • def cube(a, b, c):
    • #your code here
    • return a*b*c
    • #return 0
    • class cube:
    • def __init__(self, a, b, c):
    • self.a = a
    • self.b = b
    • self.c = c
    • def volume(self):
    • return self.a*self.b*self.c