{"id":36627,"date":"2017-02-02T10:03:42","date_gmt":"2017-02-02T16:03:42","guid":{"rendered":"https:\/\/kenscourses.com\/tc1014winter2017\/?p=36627"},"modified":"2017-02-02T10:03:42","modified_gmt":"2017-02-02T16:03:42","slug":"quiz-week-4","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc1014winter2017\/instructor\/quiz-week-4\/","title":{"rendered":"Quiz Week 4"},"content":{"rendered":"<h2>Minimum and Squares<\/h2>\n<p>For this quiz I want you to (in class) create a program with two functions:<\/p>\n<ul>\n<li>def minimum_three(x, y, z): \u00a0# returns the value that is smallest of x, y and z<\/li>\n<li>def sum_squares(x, y, z): # returns the value of the sum of squares of x, y, z<\/li>\n<\/ul>\n<h2>What to Do<\/h2>\n<p>You implement these function in your own program in a file\u00a0quiz4.py<\/p>\n<p>You should make a main routine that asks the user for three numbers and then calls your functions to\u00a0which should *RETURN* the value and you print in the main part of your program.<\/p>\n<p>Publish your code on <strong>your own blog today<\/strong> (during class time is best) and use the tag #Quiz04 so it shows up nicely in our tag cloud.<\/p>\n<h2>Feature Image Credit<\/h2>\n<figure id=\"attachment_36628\" aria-describedby=\"caption-attachment-36628\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.flickr.com\/photos\/inthe-arena\/7216039450\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-36628\" src=\"https:\/\/kenscourses.com\/tc1014winter2017\/wp-content\/uploads\/2017\/02\/7216039450_99cee0bbbe_z.jpg\" alt=\"&lt;a title=&quot;squares&quot; href=&quot;https:\/\/flickr.com\/photos\/inthe-arena\/7216039450&quot;&gt;squares&lt;\/a&gt; flickr photo by &lt;a href=&quot;https:\/\/flickr.com\/people\/inthe-arena&quot;&gt;amseaman&lt;\/a&gt; shared under a &lt;a href=&quot;https:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.0\/&quot;&gt;Creative Commons (BY-NC-ND) license&lt;\/a&gt; &lt;\/small&gt;\" width=\"640\" height=\"640\" srcset=\"https:\/\/kenscourses.com\/tc1014winter2017\/wp-content\/uploads\/2017\/02\/7216039450_99cee0bbbe_z.jpg 640w, https:\/\/kenscourses.com\/tc1014winter2017\/wp-content\/uploads\/2017\/02\/7216039450_99cee0bbbe_z-150x150.jpg 150w, https:\/\/kenscourses.com\/tc1014winter2017\/wp-content\/uploads\/2017\/02\/7216039450_99cee0bbbe_z-300x300.jpg 300w, https:\/\/kenscourses.com\/tc1014winter2017\/wp-content\/uploads\/2017\/02\/7216039450_99cee0bbbe_z-108x108.jpg 108w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><figcaption id=\"caption-attachment-36628\" class=\"wp-caption-text\"><a title=\"squares\" href=\"https:\/\/flickr.com\/photos\/inthe-arena\/7216039450\">squares<\/a> flickr photo by <a href=\"https:\/\/flickr.com\/people\/inthe-arena\">amseaman<\/a> shared under a <a href=\"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/2.0\/\">Creative Commons (BY-NC-ND) license<\/a><\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Minimum and Squares For this quiz I want you to (in class) create a program with two functions: def minimum_three(x, y, z): \u00a0# returns the value that is smallest of x, y and z def sum_squares(x, y, z): # returns the value of the sum of squares of x, y, z What to Do You &hellip; <a href=\"https:\/\/kenscourses.com\/tc1014winter2017\/instructor\/quiz-week-4\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Quiz Week 4<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":36628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,19],"tags":[],"class_list":["post-36627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-instructor","category-quizzes"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts\/36627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/comments?post=36627"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts\/36627\/revisions"}],"predecessor-version":[{"id":36630,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/posts\/36627\/revisions\/36630"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/media\/36628"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/media?parent=36627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/categories?post=36627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc1014winter2017\/wp-json\/wp\/v2\/tags?post=36627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}