{"id":1868,"date":"2015-10-05T09:12:24","date_gmt":"2015-10-05T08:12:24","guid":{"rendered":"http:\/\/www.ihaz.codes\/UoB\/?page_id=1868"},"modified":"2017-06-12T12:03:16","modified_gmt":"2017-06-12T11:03:16","slug":"word-statistics-hard","status":"publish","type":"page","link":"https:\/\/www.ihaz.codes\/UoB\/tasks\/file-access\/word-statistics-hard\/","title":{"rendered":"Word statistics &#8211; hard"},"content":{"rendered":"<p>You are to create a program which will read in text from a file using the sample code below. The name of the text file will be \u201cwords.txt\u201d and must be placed in the same place as your code.<\/p>\n<p><code><br \/>\nmyfile = open(\"words.txt\", \"r\") #<\/code><\/p><a href='https:\/\/www.ihaz.codes\/UoB\/tasks\/file-access\/word-statistics-hard\/'>[read more]<\/a>","protected":false},"excerpt":{"rendered":"<p>You are to create a program which will read in text from a file using the sample code below. The name of the text file will be \u201cwords.txt\u201d and must be placed in the same place as your code. myfile = open(&#8220;words.txt&#8221;, &#8220;r&#8221;) #[read more]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":699,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[26],"class_list":["post-1868","page","type-page","status-publish","hentry","category-python-strings"],"_links":{"self":[{"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/1868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/comments?post=1868"}],"version-history":[{"count":3,"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/1868\/revisions"}],"predecessor-version":[{"id":2206,"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/1868\/revisions\/2206"}],"up":[{"embeddable":true,"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/699"}],"wp:attachment":[{"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/media?parent=1868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/categories?post=1868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}