{"id":1866,"date":"2015-10-05T09:10:55","date_gmt":"2015-10-05T08:10:55","guid":{"rendered":"http:\/\/www.ihaz.codes\/UoB\/?page_id=1866"},"modified":"2017-06-12T12:03:00","modified_gmt":"2017-06-12T11:03:00","slug":"word-statistics-intermediate","status":"publish","type":"page","link":"https:\/\/www.ihaz.codes\/UoB\/tasks\/file-access\/word-statistics-intermediate\/","title":{"rendered":"Word statistics &#8211; intermediate"},"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-intermediate\/'>[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-1866","page","type-page","status-publish","hentry","category-python-strings"],"_links":{"self":[{"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/1866","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=1866"}],"version-history":[{"count":2,"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/1866\/revisions"}],"predecessor-version":[{"id":2205,"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/1866\/revisions\/2205"}],"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=1866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/categories?post=1866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}