{"id":2182,"date":"2017-06-12T11:38:02","date_gmt":"2017-06-12T10:38:02","guid":{"rendered":"http:\/\/www.ihaz.codes\/UoB\/?page_id=2182"},"modified":"2020-04-30T16:09:45","modified_gmt":"2020-04-30T15:09:45","slug":"take-the-ups-with-the-downs","status":"publish","type":"page","link":"http:\/\/www.ihaz.codes\/UoB\/tasks\/while-loops\/loops-silver\/take-the-ups-with-the-downs\/","title":{"rendered":"Take the ups with the downs"},"content":{"rendered":"<p>Enter the code found below. It will display the numbers from 1 to 10.<\/p>\n<p>Add an additional loop which will count back down from 10 to 1.<\/p>\n<pre><br \/><br \/><\/pre>\n\n\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\nx = 1\nwhile x &lt;=<\/pre><a href='http:\/\/www.ihaz.codes\/UoB\/tasks\/while-loops\/loops-silver\/take-the-ups-with-the-downs\/'>[read more]<\/a>","protected":false},"excerpt":{"rendered":"<p>Enter the code found below. It will display the numbers from 1 to 10. Add an additional loop which will count back down from 10 to 1. x = 1 while x &lt;= [read more]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2138,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[15],"class_list":["post-2182","page","type-page","status-publish","hentry","category-python-loops"],"_links":{"self":[{"href":"http:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/2182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/comments?post=2182"}],"version-history":[{"count":3,"href":"http:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/2182\/revisions"}],"predecessor-version":[{"id":2631,"href":"http:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/2182\/revisions\/2631"}],"up":[{"embeddable":true,"href":"http:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/pages\/2138"}],"wp:attachment":[{"href":"http:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/media?parent=2182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ihaz.codes\/UoB\/wp-json\/wp\/v2\/categories?post=2182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}