My book says that function overloading is not possible in python but it asks me questions like:WAP to find out the volume of a cube,cuboid and cylinder using function overloading.Do I have to involve decorators here?How am I supposed to involve functional overloading in my program?I saw a similar question where wraps from functools was used but failed to understand it.If functional overloading is not involved then it is child's play...P.S-I am in grade 12 and we haven't been taught much about decorators.
Function Overloading in Python
object oriented;python;functional programming
It's possible the book is using incorrect wording and is actually asking you to use OO inheritance.class Shape(object):    def volume():        raise NotImplementedError()class Cube(Shape):    def __init__(self, side_length):        self.side = side_length    def volume():        return self.side * self.side * self.sideclass Cylinder(Shape):    def volume():        ...