{"id":37866,"date":"2016-05-05T12:54:39","date_gmt":"2016-05-05T17:54:39","guid":{"rendered":"http:\/\/davidmedblog.wordpress.com\/?p=236"},"modified":"2016-05-05T14:15:55","modified_gmt":"2016-05-05T19:15:55","slug":"wsq12-word-count-7","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/05\/wsq12-word-count-7\/","title":{"rendered":"WSQ12 \u2013 Word Count"},"content":{"rendered":"<p><strong>Instruction:<\/strong><\/p>\n<p>Create a program that asks the user for a word which will be your search word and the name of a file to open and search for that word. Then create a function that will receive two parameters (both string) representing those two data points. This function returns the number of occurrences of that word in that file.<\/p>\n<p>Here is a picture of the code:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-241\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/05\/e46e1be0615b3176bd593bd53ac9985b.jpg\" alt=\"WSQ12\"   \/><\/p>\n<p>&nbsp;<\/p>\n<p>Here is a link to the code in Github.<\/p>\n<p><span class=\"repo-root js-repo-root\"><span class=\"js-path-segment\"><a href=\"https:\/\/github.com\/DavidMedDow\/Python\">Python<\/a><\/span><\/span><span class=\"separator\">\/<\/span><strong class=\"final-path\">WSQ-12 (Word Count)<\/strong><\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/davidmedblog.wordpress.com\/236\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/05\/a85debca3aa487f2f86367e8ff269760.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/05\/6af626ba718fe9fb39e7c80f4cc6eef6.jpg#038;blog=105228208&#038;%23038;post=236&#038;%23038;subd=davidmedblog&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Instruction: Create a program that asks the user for a word which will be your search word and the name of a file to open and search for that word. Then create a function that will receive two parameters (both string) representing those two data points. This function returns the number of occurrences of that &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/05\/wsq12-word-count-7\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WSQ12 \u2013 Word Count<\/span><\/a><\/p>\n","protected":false},"author":75,"featured_media":37885,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[20,226],"class_list":["post-37866","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-quiz","tag-wsq12"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/37866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=37866"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/37866\/revisions"}],"predecessor-version":[{"id":37889,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/37866\/revisions\/37889"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/37885"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=37866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=37866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=37866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}