{"id":307,"date":"2022-05-16T15:48:41","date_gmt":"2022-05-16T14:48:41","guid":{"rendered":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/?page_id=307"},"modified":"2024-11-28T15:11:41","modified_gmt":"2024-11-28T15:11:41","slug":"pre-defined-functions","status":"publish","type":"page","link":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/pre-defined-functions\/","title":{"rendered":"Pre-Defined Functions"},"content":{"rendered":"<p>These are <strong>modules<\/strong> of code that have already been written for programmers to use. They are held in a library of pre-defined functions and save the programmer time when coding. It also means that the programmer does not need to know in detail how to write all parts of the program.\u00a0 The pre-defined functions that you need to know at national 5 are:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-308\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16154819\/Screenshot-2022-05-16-154726-300x83.png\" alt=\"\" width=\"697\" height=\"193\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16154819\/Screenshot-2022-05-16-154726-300x83.png 300w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16154819\/Screenshot-2022-05-16-154726-1024x283.png 1024w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16154819\/Screenshot-2022-05-16-154726-768x212.png 768w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16154819\/Screenshot-2022-05-16-154726-624x172.png 624w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2022\/05\/16154819\/Screenshot-2022-05-16-154726.png 1260w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/p>\n<h2 style=\"color: red\"><strong>Python Code Examples<\/strong><\/h2>\n<p><a href=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2024\/11\/28151136\/predefined-.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-610\" src=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2024\/11\/28151136\/predefined-.png\" alt=\"\" width=\"610\" height=\"515\" srcset=\"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2024\/11\/28151136\/predefined-.png 610w, https:\/\/blogs.glowscotland.org.uk\/glowblogs\/public\/phsn5computingscience\/uploads\/sites\/10033\/2024\/11\/28151136\/predefined--300x253.png 300w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>These are modules of code that have already been written for programmers to use. They are held in a library of pre-defined functions and save the programmer time when coding. It also means that the programmer does not need to know in detail how to write all parts of the program.\u00a0 The pre-defined functions that [&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-307","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/307","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=307"}],"version-history":[{"count":5,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/307\/revisions"}],"predecessor-version":[{"id":611,"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/pages\/307\/revisions\/611"}],"wp:attachment":[{"href":"https:\/\/blogs.glowscotland.org.uk\/glowblogs\/phsn5computingscience\/wp-json\/wp\/v2\/media?parent=307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}