{"id":386,"date":"2020-07-07T19:58:02","date_gmt":"2020-07-07T19:58:02","guid":{"rendered":"https:\/\/aaidm.buas.nl\/?page_id=386"},"modified":"2020-08-27T19:15:22","modified_gmt":"2020-08-27T19:15:22","slug":"pr1-preparation-for-week-5-loop-control","status":"publish","type":"page","link":"https:\/\/aaidm.buas.nl\/?page_id=386","title":{"rendered":"PR1 &#8211; Preparation for Week 6 &#8211; Loop Control"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<figure class=\"wp-block-table\"><table><tbody><tr><td>Author:<\/td><td>Carlos Santos<\/td><\/tr><tr><td>Learning Line:<\/td><td>Programming<\/td><\/tr><tr><td>Course:<\/td><td>PR1: Introduction to Programming<\/td><\/tr><tr><td>Week:<\/td><td>4<\/td><\/tr><tr><td>Competencies:<\/td><td>Students will be able to effectively define and use variables, programming flow control.<\/td><\/tr><tr><td>BoKS:<\/td><td>\u00ad 3bK2, The student understands the principles of data related software like Python, R, Scala and\/or Java and knows how to write (basic) scripts.<\/td><\/tr><tr><td>Learning Goals:<\/td><td>Variables and Data Types<br>In-code Comments<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Flow Control &#8211; while loop<\/h2>\n\n\n\n<p>If statements help you  choose is a set of instructions are performed. There is a similar structure, that not only checks if a set of instructions are performed, but, also repeats them while a specific condition is <em>True<\/em>.<\/p>\n\n\n\n<p>A <em>while <\/em>loop used a simple condition to determine if a set of instructions are  executed, and while that condition is <em>True<\/em>, it keeps repeating the instructions.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;idea&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">a = 0                                    # declare a variable a and set it to 0\nwhile a &lt; 10:                            # repeat the following operations while a is less than 10\n    print(&quot;a current value is &quot;+str(a))  # print value of a\n    a = a + 1                            # increment the value of a        \nprint(&quot;a final value is &quot;+str(a))        # exit the loop and print the final value of a<\/pre><\/div>\n\n\n\n<p><strong>Explanation<\/strong>: The while loop repeats lines 3 and 4, while the condition (a is less than 10)  remains <em>True<\/em>.<\/p>\n\n\n\n<p>There are a few important things to keep in mind: <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><em>while <\/em>loops are only executed if the condition is <em>True<\/em> to start with;<\/li><li><em>while <\/em>create a new scope, and it repeats the execution of this scope while the condition remains <em>True<\/em>;<\/li><li>typically <em>while <\/em>loops manipulate the condition inside of its scope;<\/li><li>if the condition its always <em>True<\/em> the loops will continue indefinitely, until it is interrupted externally (for example by forcing application to exit)<\/li><\/ol>\n\n\n\n<p>Lets make a simple command line application, that accepts commands, until an &#8220;exit&#8221; command is typed, by the user.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;idea&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">command = &quot;&quot;\nwhile command.lower() != &quot;exit&quot;:\n    command = input(&quot;&gt;&quot;).lower()\n    if command == &quot;hi&quot;:\n        print(&quot;Hello&quot;)\n    elif command == &quot;name&quot;:\n        print(&quot;Robot&quot;)\nprint(&quot;Bye&quot;)<\/pre><\/div>\n\n\n\n<p>Lets elaborate on this concept to introduce a few more concepts. During a loop you can exit by calling the <code>break<\/code> command. <code><code>break<\/code><\/code> forces the script to abort what it was doing and forces to exit the loop without checking the condition.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;idea&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">command = &quot;&quot;\nwhile command.lower() != &quot;exit&quot;:\n    command = input(&quot;&gt;&quot;).lower()\n    if command == &quot;hi&quot;:\n        print(&quot;Hello&quot;)\n    elif command == &quot;name&quot;:\n        print(&quot;Robot&quot;)\n    elif command == &quot;quit&quot; or  command == &quot;bye&quot;:\n        break\nprint(&quot;Bye&quot;)<\/pre><\/div>\n\n\n\n<p>There is another command called <code>continue<\/code> which forces the script to restart the loop in the current state (including the condition) and ignoring the follow up code.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:false,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;idea&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">command = &quot;&quot;\nwhile command.lower() != &quot;exit&quot;:\n    command = input(&quot;&gt;&quot;).lower()\n    if command == &quot;hi&quot;:\n        print(&quot;Hello&quot;)\n    elif command == &quot;name&quot;:\n        print(&quot;Robot&quot;)\n    elif command == &quot;quit&quot; or  command == &quot;bye&quot;:\n        break\n    elif command == &quot;?&quot;:\n        print(&quot;Please type a command.&quot;) \n        continue\n        print(&quot;DEAD CODE: because this line is preceded by a continue&quot;) \nprint(&quot;Bye&quot;)<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">For Loop<\/h2>\n\n\n\n<p>Of the loop types listed above, Python only implements the last: collection-based iteration. At first blush, that may seem like a raw deal, but rest assured that Python\u2019s implementation of definite iteration is so versatile that you won\u2019t end up feeling cheated!<\/p>\n\n\n\n<p>Shortly, you\u2019ll dig into the guts of Python\u2019s&nbsp;<code>for<\/code>&nbsp;loop in detail. But for now, let\u2019s start with a quick prototype and example, just to get acquainted.<\/p>\n\n\n\n<p>Python\u2019s&nbsp;<code>for<\/code>&nbsp;loop looks like this:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;idea&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">for &lt;var&gt; in &lt;iterable&gt;:\n    &lt;statement(s)&gt;\n<\/pre><\/div>\n\n\n\n<p><code>&lt;iterable&gt;<\/code>&nbsp;is a collection of objects\u2014for example, a list or tuple. The&nbsp;<code>&lt;statement(s)&gt;<\/code>&nbsp;in the loop body are denoted by indentation, as with all Python control structures, and are executed once for each item in&nbsp;<code>&lt;iterable&gt;<\/code>. The loop variable&nbsp;<code>&lt;var&gt;<\/code>&nbsp;takes on the value of the next element in&nbsp;<code>&lt;iterable&gt;<\/code>&nbsp;each time through the loop.<\/p>\n\n\n\n<p>Here is a representative example:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;idea&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">&gt;&gt;&gt; a = ['foo', 'bar', 'baz']\n&gt;&gt;&gt; for i in a:\n      print(i)\nfoo\nbar\nbaz<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">The&nbsp;<code>range()<\/code>&nbsp;Function<\/h3>\n\n\n\n<p>For example, if you wanted to iterate through the values from\u00a0<code>0<\/code>\u00a0to\u00a0<code>4<\/code>, you could simply do this:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;idea&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">&gt;&gt;&gt; for n in (0, 1, 2, 3, 4):\n       print(n)\n\n0\n1\n2\n3\n4\n<\/pre><\/div>\n\n\n\n<p>This solution isn\u2019t too bad when there are just a few numbers. But if the number range were much larger, it would become tedious pretty quickly.<\/p>\n\n\n\n<p>Happily, Python provides a better option\u2014the built-in&nbsp;<code>range()<\/code>&nbsp;function, which returns an iterable that yields a sequence of integers.<\/p>\n\n\n\n<p><code>range(&lt;end>)<\/code>\u00a0returns an iterable that yields integers starting with\u00a0<code>0<\/code>, up to but not including\u00a0<code>&lt;end><\/code>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;idea&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">&gt;&gt;&gt; for n in range(4):\n       print(n)\n\n0\n1\n2\n3\n4\n<\/pre><\/div>\n\n\n\n<p>Range is actually mode elaborate than that. <code>range(&lt;begin>, &lt;end>, &lt;stride>)<\/code>\u00a0returns an iterable that yields integers starting with\u00a0<code>&lt;begin><\/code>, up to but not including\u00a0<code>&lt;end><\/code>. If specified,\u00a0<code>&lt;stride><\/code>\u00a0indicates an amount to skip between values (analogous to the stride value used for string and list slicing):<\/p>\n\n\n\n<p><code>range(&lt;end&gt;)<\/code>&nbsp;returns an iterable that yields integers starting with&nbsp;<code>0<\/code>, up to but not including&nbsp;<code>&lt;end&gt;<\/code>:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:false,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;idea&quot;,&quot;lineNumbers&quot;:true,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">&gt;&gt;&gt; for n in range(10,5,-2):\n       print(n)\n10\n8\n6<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Author: Carlos Santos Learning Line: Programming Course: PR1: Introduction to Programming Week: 4 Competencies: Students will be able to effectively define and use variables, programming flow control. BoKS: \u00ad 3bK2, The student understands the principles of data related software like Python, R, Scala and\/or Java and knows how to write (basic) scripts. Learning Goals: Variables [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":99,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-386","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PR1 - Preparation for Week 6 - Loop Control - Applied Artificial Intelligence and Data Management<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/aaidm.buas.nl\/?page_id=386\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PR1 - Preparation for Week 6 - Loop Control - Applied Artificial Intelligence and Data Management\" \/>\n<meta property=\"og:description\" content=\"Author: Carlos Santos Learning Line: Programming Course: PR1: Introduction to Programming Week: 4 Competencies: Students will be able to effectively define and use variables, programming flow control. BoKS: \u00ad 3bK2, The student understands the principles of data related software like Python, R, Scala and\/or Java and knows how to write (basic) scripts. Learning Goals: Variables [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/aaidm.buas.nl\/?page_id=386\" \/>\n<meta property=\"og:site_name\" content=\"Applied Artificial Intelligence and Data Management\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-27T19:15:22+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/aaidm.buas.nl\/?page_id=386\",\"url\":\"https:\/\/aaidm.buas.nl\/?page_id=386\",\"name\":\"PR1 - Preparation for Week 6 - Loop Control - Applied Artificial Intelligence and Data Management\",\"isPartOf\":{\"@id\":\"https:\/\/aaidm.buas.nl\/#website\"},\"datePublished\":\"2020-07-07T19:58:02+00:00\",\"dateModified\":\"2020-08-27T19:15:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/aaidm.buas.nl\/?page_id=386#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/aaidm.buas.nl\/?page_id=386\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/aaidm.buas.nl\/?page_id=386#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/aaidm.buas.nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Year 1\",\"item\":\"https:\/\/aaidm.buas.nl\/?page_id=80\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Year 1 &#8211; Block A\",\"item\":\"https:\/\/aaidm.buas.nl\/?page_id=82\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"PR1: Introduction to Programming\",\"item\":\"https:\/\/aaidm.buas.nl\/?page_id=99\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"PR1 &#8211; Preparation for Week 6 &#8211; Loop Control\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/aaidm.buas.nl\/#website\",\"url\":\"https:\/\/aaidm.buas.nl\/\",\"name\":\"Applied Artificial Intelligence and Data Management\",\"description\":\"Course Information\",\"publisher\":{\"@id\":\"https:\/\/aaidm.buas.nl\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/aaidm.buas.nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/aaidm.buas.nl\/#organization\",\"name\":\"Applied Artificial Intelligence and Data Management\",\"url\":\"https:\/\/aaidm.buas.nl\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/aaidm.buas.nl\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/aaidm.buas.nl\/wp-content\/uploads\/2020\/06\/buas-logo.png\",\"contentUrl\":\"https:\/\/aaidm.buas.nl\/wp-content\/uploads\/2020\/06\/buas-logo.png\",\"width\":382,\"height\":132,\"caption\":\"Applied Artificial Intelligence and Data Management\"},\"image\":{\"@id\":\"https:\/\/aaidm.buas.nl\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PR1 - Preparation for Week 6 - Loop Control - Applied Artificial Intelligence and Data Management","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/aaidm.buas.nl\/?page_id=386","og_locale":"en_US","og_type":"article","og_title":"PR1 - Preparation for Week 6 - Loop Control - Applied Artificial Intelligence and Data Management","og_description":"Author: Carlos Santos Learning Line: Programming Course: PR1: Introduction to Programming Week: 4 Competencies: Students will be able to effectively define and use variables, programming flow control. BoKS: \u00ad 3bK2, The student understands the principles of data related software like Python, R, Scala and\/or Java and knows how to write (basic) scripts. Learning Goals: Variables [&hellip;]","og_url":"https:\/\/aaidm.buas.nl\/?page_id=386","og_site_name":"Applied Artificial Intelligence and Data Management","article_modified_time":"2020-08-27T19:15:22+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/aaidm.buas.nl\/?page_id=386","url":"https:\/\/aaidm.buas.nl\/?page_id=386","name":"PR1 - Preparation for Week 6 - Loop Control - Applied Artificial Intelligence and Data Management","isPartOf":{"@id":"https:\/\/aaidm.buas.nl\/#website"},"datePublished":"2020-07-07T19:58:02+00:00","dateModified":"2020-08-27T19:15:22+00:00","breadcrumb":{"@id":"https:\/\/aaidm.buas.nl\/?page_id=386#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/aaidm.buas.nl\/?page_id=386"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/aaidm.buas.nl\/?page_id=386#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/aaidm.buas.nl\/"},{"@type":"ListItem","position":2,"name":"Year 1","item":"https:\/\/aaidm.buas.nl\/?page_id=80"},{"@type":"ListItem","position":3,"name":"Year 1 &#8211; Block A","item":"https:\/\/aaidm.buas.nl\/?page_id=82"},{"@type":"ListItem","position":4,"name":"PR1: Introduction to Programming","item":"https:\/\/aaidm.buas.nl\/?page_id=99"},{"@type":"ListItem","position":5,"name":"PR1 &#8211; Preparation for Week 6 &#8211; Loop Control"}]},{"@type":"WebSite","@id":"https:\/\/aaidm.buas.nl\/#website","url":"https:\/\/aaidm.buas.nl\/","name":"Applied Artificial Intelligence and Data Management","description":"Course Information","publisher":{"@id":"https:\/\/aaidm.buas.nl\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/aaidm.buas.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/aaidm.buas.nl\/#organization","name":"Applied Artificial Intelligence and Data Management","url":"https:\/\/aaidm.buas.nl\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/aaidm.buas.nl\/#\/schema\/logo\/image\/","url":"https:\/\/aaidm.buas.nl\/wp-content\/uploads\/2020\/06\/buas-logo.png","contentUrl":"https:\/\/aaidm.buas.nl\/wp-content\/uploads\/2020\/06\/buas-logo.png","width":382,"height":132,"caption":"Applied Artificial Intelligence and Data Management"},"image":{"@id":"https:\/\/aaidm.buas.nl\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/aaidm.buas.nl\/index.php?rest_route=\/wp\/v2\/pages\/386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aaidm.buas.nl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/aaidm.buas.nl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/aaidm.buas.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aaidm.buas.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=386"}],"version-history":[{"count":3,"href":"https:\/\/aaidm.buas.nl\/index.php?rest_route=\/wp\/v2\/pages\/386\/revisions"}],"predecessor-version":[{"id":411,"href":"https:\/\/aaidm.buas.nl\/index.php?rest_route=\/wp\/v2\/pages\/386\/revisions\/411"}],"up":[{"embeddable":true,"href":"https:\/\/aaidm.buas.nl\/index.php?rest_route=\/wp\/v2\/pages\/99"}],"wp:attachment":[{"href":"https:\/\/aaidm.buas.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}