Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831

Warning: Cannot modify header information - headers already sent by (output started at /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php:152) in /home/kenbauer/public_kenscourses/tc101fall2015/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"id":22719,"date":"2015-10-08T18:07:23","date_gmt":"2015-10-08T23:07:23","guid":{"rendered":"http:\/\/finntec.wordpress.com\/?p=41"},"modified":"2015-10-08T18:07:23","modified_gmt":"2015-10-08T23:07:23","slug":"wsq07-sum-of-numbers-14","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101fall2015\/2015\/wsq07-sum-of-numbers-14\/","title":{"rendered":"WSQ07 \u2013 Sum of Numbers"},"content":{"rendered":"

For calculating the sum I used a while-loop. This one is nested in an if-else statement, so that the program can tell the user when we confused the lower with the upper bound.<\/p>\n

This is my code:<\/p>\n

print(\"I will calculate the sum of numbers in a range you select.\")\n\nnumLow = numLow1 = int(input(\"What is the lower bound? \"))\nnumUp = int(input(\"What is the upper bound? \"))\n\nx = int(numLow)\n\nif numLow <= numUp :\n\u00a0\u00a0\u00a0 while numLow != numUp :\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 numLow = numLow + 1\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 x = x + numLow\n\u00a0\u00a0\u00a0 print(\"The sum of numbers in the range between\", numLow1,\"and\",numUp,\"is\",x)\nelse:\n\u00a0\u00a0\u00a0 print(\"You didn't type in the numbers in the right order.\")\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\nprint(numCom,\"was the right number!\")\nprint(\"You needed\",attempt,\"attempts.\")<\/span><\/span><\/pre>\n

\"\"<\/a> \"\"<\/p>\n","protected":false},"excerpt":{"rendered":"

For calculating the sum I used a while-loop. This one is nested in an if-else statement, so that the program can tell the user when we confused the lower with the upper bound. This is my code: print(“I will calculate the sum of numbers in a range you select.”) numLow = numLow1 = int(input(“What is […]\"\"<\/p>\n","protected":false},"author":209,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[169,39],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/22719"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/209"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=22719"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/22719\/revisions"}],"predecessor-version":[{"id":22720,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/22719\/revisions\/22720"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=22719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=22719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=22719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}