HackerRank problem In this challenge, the user enters a string and a substring. You have to print the number of times that the substring occurs in the given string. String traversal will take place ...
#Create a length function that takes either string or list as an input and return the length of the it.