{"id":8746,"date":"2021-09-09T20:20:36","date_gmt":"2021-09-09T17:20:36","guid":{"rendered":"https:\/\/elzero.org\/?p=8746"},"modified":"2022-06-20T12:34:30","modified_gmt":"2022-06-20T09:34:30","slug":"python-problems-solving-find-missing-letter-in-sequence","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/python-problems-solving-find-missing-letter-in-sequence\/","title":{"rendered":"Find Missing Letter in Sequence"},"content":{"rendered":"<h3>\u0627\u0644\u062d\u0644<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-python\">\r\n# abc defghijklmnopqrstuvwxyz\r\n\r\nimport string\r\n\r\n# print(dir(string))\r\n# print(string.ascii_lowercase)\r\n\r\ndef find_missing_letter_in(givenLetters):\r\n  alpha = string.ascii_lowercase\r\n  start = alpha.index(givenLetters[0])\r\n  for letter in alpha[start:]:\r\n    if letter not in givenLetters:\r\n      return letter\r\n\r\n  return f\"No Missing Letter In Sequence\"\r\n\r\n# Testing Ouput\r\nprint(find_missing_letter_in(\"abcdeghi\"))  # f\r\nprint(find_missing_letter_in(\"defgi\"))  # h\r\nprint(find_missing_letter_in(\"xyz\"))  # No Missing Letter In Sequence\r\n<\/script>","protected":false},"excerpt":{"rendered":"<p>\u0627\u0644\u062d\u0644<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1337],"tags":[],"class_list":["post-8746","post","type-post","status-publish","format-standard","hentry","category-problems-solving"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/8746","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=8746"}],"version-history":[{"count":2,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/8746\/revisions"}],"predecessor-version":[{"id":8752,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/8746\/revisions\/8752"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=8746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=8746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=8746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}