{"id":51832,"date":"2021-09-19T19:43:19","date_gmt":"2021-09-19T19:43:19","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/09\/19\/python-exercise\/"},"modified":"2021-09-19T19:43:19","modified_gmt":"2021-09-19T19:43:19","slug":"python-exercise","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/09\/19\/python-exercise\/","title":{"rendered":"Python Exercise"},"content":{"rendered":"<p>Read and output entire text file <br \/>2. Read a file into a list object and print it out line by line <br \/>3. Read a file into a list object and print a random line out <br \/>4. Read a file in and count (and print) the number of words. <br \/>5. Write a list to a file &#8211; Make the list 10 items long, make each item a phrase &#8211; the phrases are up to you <br \/>File to use on 1-4: text.txt (its attached) <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Read and output entire text file 2. Read a file into a list object and print it out line by line 3. Read a file into a list object and print a random line out 4. Read a file in and count (and print) the number of words. 5. Write a list to a file [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-51832","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-writing"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/51832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=51832"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/51832\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=51832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=51832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=51832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}