{"id":57,"date":"2017-12-03T20:47:53","date_gmt":"2017-12-03T20:47:53","guid":{"rendered":"http:\/\/stg-universityofbathblogs-staging.kinsta.cloud\/python\/?page_id=57"},"modified":"2017-12-03T22:00:37","modified_gmt":"2017-12-03T22:00:37","slug":"loops","status":"publish","type":"page","link":"https:\/\/stg-universityofbathblogs-staging.kinsta.cloud\/python\/loops\/","title":{"rendered":"Loops"},"content":{"rendered":"<p>This follows on in my ways from the [<a href=\"https:\/\/hub.mybinder.org\/user\/bjmorgan-python_in_chemistry-ty1bfjno\/notebooks\/General\/Functions.ipynb\">functions<\/a>] notebook. The aim here is to show the utility of <strong>loops<\/strong>\u00a0in Python programming. I will again endevour to use examples of <em>chemistry<\/em> related problems, but occasionally examples from physics or mathematics will come through.<\/p>\n<p>As is the case with my aspects of programming the propose of a loop is to allow the programmer to write less code. This leads to the idiom that <em>computers are really good at doing the same thing over and over<\/em>, much better than humans.<\/p>\n<p>A loop really is just that, a way to tell the computer to perform a task multiple times over.<\/p>\n<p><a href=\"https:\/\/mybinder.org\/v2\/gh\/bjmorgan\/python_in_chemistry\/master?filepath=General%2FLoops.ipynb\"><img decoding=\"async\" src=\"https:\/\/mybinder.org\/static\/images\/badge.svg\" alt=\"Launch this notebook using Binder\" \/><\/a><\/p>\n<p><a href=\"https:\/\/raw.githubusercontent.com\/bjmorgan\/python_in_chemistry\/master\/General\/Loops.ipynb\">Download this notebook<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This follows on in my ways from the [functions] notebook. The aim here is to show the utility of loops\u00a0in Python programming. I will again endevour to use examples of chemistry related problems, but occasionally examples from physics or mathematics...<\/p>\n","protected":false},"author":1040,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-57","page","type-page","status-publish","hentry"],"acf":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Pd4Prp-V","_links":{"self":[{"href":"https:\/\/stg-universityofbathblogs-staging.kinsta.cloud\/python\/wp-json\/wp\/v2\/pages\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stg-universityofbathblogs-staging.kinsta.cloud\/python\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/stg-universityofbathblogs-staging.kinsta.cloud\/python\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/stg-universityofbathblogs-staging.kinsta.cloud\/python\/wp-json\/wp\/v2\/users\/1040"}],"replies":[{"embeddable":true,"href":"https:\/\/stg-universityofbathblogs-staging.kinsta.cloud\/python\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":0,"href":"https:\/\/stg-universityofbathblogs-staging.kinsta.cloud\/python\/wp-json\/wp\/v2\/pages\/57\/revisions"}],"wp:attachment":[{"href":"https:\/\/stg-universityofbathblogs-staging.kinsta.cloud\/python\/wp-json\/wp\/v2\/media?parent=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}