Jan-10-2020, 05:13 AM
(This post was last modified: Jan-10-2020, 05:13 AM by michael1789.)
The code in the function needs to be able to handle the type of what you give it, but that code can include a type check and act accordingly. As for converting types as appropriate, that's not automatic, you will have to write that code.
I don't really know the specifics of it all but this page seem to explain it all better than I can: geeksforgeeks_DOT_org/type-isinstance-python/
I don't really know the specifics of it all but this page seem to explain it all better than I can: geeksforgeeks_DOT_org/type-isinstance-python/