<jupyter_start><jupyter_text>Polymorphism Polymorphism in Computer Science is the ability to present the same interface for differing underlying forms. We can have in some programming languages polymorphic functions or methods for example. Polymorphic functions or methods can be applied to arguments of different types, and they can behave differently depending on the type of the arguments to which they are applied. We can also define the same function name with a varying number of parameter.<jupyter_code>>>> def f(x, y):
...     print("values: ", x, y)
f(42, 43)
f(42, 43.7)
f(42.3, 43)
f(42.0, 43.9)
f([3,5,6],(3,5))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0888208269525268, 'fraction_numerical': 0.03828483920367534, 'mean_word_length': 5.228571428571429, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '240298', 'license': 'MIT', 'n_tokens_mistral': 208, 'n_tokens_neox': 187, 'n_words': 88, 'path': '00-PythonLearning/01-Tutorials/python_examples/polymorphism.ipynb', 'repo_name': 'spendyala/deeplearning-docker', 'size': '653'}