{"id":320,"date":"2022-05-16T16:09:05","date_gmt":"2022-05-16T15:09:05","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/?page_id=320"},"modified":"2022-05-16T16:14:08","modified_gmt":"2022-05-16T15:14:08","slug":"concatentation","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/concatentation\/","title":{"rendered":"Concatentation"},"content":{"rendered":"<p><strong>Strings<\/strong> are stored in the computer memory in a very similar way to <strong>arrays<\/strong>.\u00a0 A <strong>string<\/strong> can be thought of as an <strong>array of characters<\/strong>, each letter is stored in its own <strong>index<\/strong>.\u00a0 The first character is given the index (0).<\/p>\n<p>Strings can be combined to form new strings.\u00a0 Many programs involved manipulating strings to produce the formatting that is required.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-321\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16160853\/Screenshot-2022-05-16-160812-300x24.png\" alt=\"\" width=\"763\" height=\"61\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16160853\/Screenshot-2022-05-16-160812-300x24.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16160853\/Screenshot-2022-05-16-160812-1024x80.png 1024w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16160853\/Screenshot-2022-05-16-160812-768x60.png 768w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16160853\/Screenshot-2022-05-16-160812-624x49.png 624w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16160853\/Screenshot-2022-05-16-160812.png 1260w\" sizes=\"auto, (max-width: 763px) 100vw, 763px\" \/><\/p>\n<h2 style=\"color: red\"><strong>Python Code Examples<\/strong><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-325\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16161239\/Screenshot-2022-05-16-161224-300x168.png\" alt=\"\" width=\"723\" height=\"405\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16161239\/Screenshot-2022-05-16-161224-300x168.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16161239\/Screenshot-2022-05-16-161224-1024x573.png 1024w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16161239\/Screenshot-2022-05-16-161224-768x430.png 768w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16161239\/Screenshot-2022-05-16-161224-624x349.png 624w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16161239\/Screenshot-2022-05-16-161224.png 1260w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Strings are stored in the computer memory in a very similar way to arrays.\u00a0 A string can be thought of as an array of characters, each letter is stored in its own index.\u00a0 The first character is given the index (0). Strings can be combined to form new strings.\u00a0 Many programs involved manipulating strings to [&hellip;]<\/p>\n","protected":false},"author":79984,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-320","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/users\/79984"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":5,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/320\/revisions"}],"predecessor-version":[{"id":327,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/320\/revisions\/327"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/media?parent=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}