New course! Every coder should learn Generative AI!
Try a free lesson1 Answer
0
imo there's no need to overload functions in Python. Arguments haven't got any type, so you "believe", that input will be correct. By the way if you really want,you can check if object passed through parameter inside your method.