{"id":4147,"date":"2020-06-16T04:14:14","date_gmt":"2020-06-16T01:14:14","guid":{"rendered":"https:\/\/elzero.org\/?p=4147"},"modified":"2022-10-26T19:55:46","modified_gmt":"2022-10-26T16:55:46","slug":"count-substrings-inside-string-challenge","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/count-substrings-inside-string-challenge\/","title":{"rendered":"Count Number Of Substrings In A String"},"content":{"rendered":"<h3>\u0645\u0642\u062f\u0645\u0629 \u0639\u0646 \u0627\u0644\u062a\u062d\u062f\u064a<\/h3>\r\n\r\n<div class=\"text\">\r\n\u0625\u062d\u0633\u0628 \u0639\u062f\u062f \u0627\u0644 Substrings \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629 \u062f\u0627\u062e\u0644 \u0627\u0644 String\r\n<\/div>\r\n\r\n<h3>\u0627\u0644\u0645\u0637\u0644\u0648\u0628<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u0642\u0645 \u0628\u0639\u0645\u0644 Function \u062a\u0642\u0628\u0644 \u0645\u0646\u0643 2 Parameters \u0627\u0644\u0623\u0648\u0644 Substring \u0648\u0627\u0644\u062b\u0627\u0646\u064a String<\/li>\r\n  <li>\u0625\u062d\u0633\u0628 \u0639\u062f\u062f \u0627\u0644 Substrings \u0627\u0644\u0645\u0637\u0644\u0648\u0628\u0629 \u062f\u0627\u062e\u0644 \u0627\u0644 String<\/li>\r\n<\/ul>\r\n\r\n<h3>\u0627\u0644\u062a\u062d\u062f\u064a\u0627\u062a<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u0644\u0627 \u062a\u0633\u062a\u062e\u062f\u0645 \u0623\u064a Method \u062c\u0627\u0647\u0632\u0629 \u062a\u0642\u0648\u0645 \u0628\u062d\u0633\u0627\u0628 \u0627\u0644 Substrings \u0648\u0642\u0645 \u0628\u062d\u0633\u0627\u0628\u0647\u0627 \u0628\u0646\u0641\u0633\u0643<\/li>\r\n  <li>\u0642\u0645 \u0628\u062d\u0633\u0627\u0628 \u0627\u0644 Substring \u0633\u0648\u0627\u0621 \u0643\u0627\u0646 \u0628\u062d\u0631\u0648\u0641 \u0643\u0628\u064a\u0631\u0629 \u0623\u0648 \u0635\u063a\u064a\u0631\u0629<\/li>\r\n<\/ul>\r\n\r\n<h3>\u0645\u062b\u0627\u0644 \u0628\u0644\u063a\u0629 Python<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-python\">\r\ndef count_sub_strings(sub, string):\r\n  # Your Code\r\n\r\nprint(count_sub_strings(\"o\", \"I Love Elzero Web School\"))  # 4\r\nprint(count_sub_strings(\"a\", \"Iam Happy\"))  # 2\r\n<\/script>","protected":false},"excerpt":{"rendered":"<p>Count Substrings In String<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[882],"tags":[713,458,569,845],"class_list":["post-4147","post","type-post","status-publish","format-standard","hentry","category-programming-challenges","tag-count","tag-python","tag-string","tag-substring"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/4147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=4147"}],"version-history":[{"count":4,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/4147\/revisions"}],"predecessor-version":[{"id":12416,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/4147\/revisions\/12416"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=4147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=4147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=4147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}