Mar-14-2017, 12:41 AM
(Mar-13-2017, 03:09 PM)charlesprince Wrote: why it's not available in python or else is there any way to make it. please let me know
Python follows a different philosophy. If it has the attributes/methods of the required object, you let it work. That's what allows the sum function to handle integers, strings, and lists. You can type check if you want, but you have to write it yourself. See my previous post.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures