{"id":952,"date":"2020-09-23T03:31:39","date_gmt":"2020-09-23T03:31:39","guid":{"rendered":"http:\/\/learnlearn.uk\/alevelcs\/?page_id=952"},"modified":"2021-04-02T05:12:01","modified_gmt":"2021-04-02T05:12:01","slug":"user-defined-types","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/","title":{"rendered":"User Defined Types"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Introduction<\/h2>\n<div class=\"tabcontent\">\n\n<h3>What are user defined types?<\/h3>\n<p>Sometimes the use of in-built data types \/ structures are not sufficient to represent the data you are working with. It is therefore necessary to construct your own data types\/structures. User defined types can make programs much easier to code, read and debug.<\/p>\n<p><strong>Non-composite vs Composite types<\/strong><\/p>\n<p>Non composite types are user defined types that contain only one data type, for instance enumerators.<\/p>\n<p>Composite data types are user defined types that contain more than one data type, for instance a record<\/p>\n\n<\/div><h2 class=\"tabtitle\">Enumerators<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Enumerators<\/h3>\n<p>Enumerators bind a group of names to constant values and are useful for things such as days of the weeks or months of the year,<\/p>\n<p><strong>Enumerators in Python<\/strong><\/p>\n<p>Enumerators were added to Python 3.4+<\/p>\n<p>&nbsp;<\/p>\n<p><!-- HTML generated using hilite.me --><\/p>\n<div style=\"background: #ffffff; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;\">\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">import<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">enum<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">class<\/span> <span style=\"color: #bb0066; font-weight: bold;\">Months<\/span>(enum<span style=\"color: #333333;\">.<\/span>Enum):\r\n    JAN <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">1<\/span>\r\n    FEB <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">2<\/span>\r\n    MAR <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">3<\/span>\r\n    APR <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">4<\/span>\r\n    MAY <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">5<\/span>\r\n    JUN <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">6<\/span>\r\n    JUL <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">7<\/span>\r\n    AUG <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">8<\/span>\r\n    SEP <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">9<\/span>\r\n    OCT <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">10<\/span>\r\n    NOV <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">11<\/span>\r\n    DEC <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">12<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(Months<span style=\"color: #333333;\">.<\/span>JAN)\r\n<span style=\"color: #888888;\"># prints &lt;Months.JAN: 1&gt;<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(Months[<span style=\"background-color: #fff0f0;\">'JAN'<\/span>])\r\n<span style=\"color: #888888;\"># also prints &lt;Months.JAN: 1&gt;  \/\/ useful for passing variable references<\/span>\r\n    \r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(Months(<span style=\"color: #0000dd; font-weight: bold;\">1<\/span>))\r\n also prints <span style=\"color: #333333;\">&lt;<\/span>Months<span style=\"color: #333333;\">.<\/span>JAN: <span style=\"color: #0000dd; font-weight: bold;\">1<\/span><span style=\"color: #333333;\">&gt;<\/span>  <span style=\"color: #333333;\">\/\/<\/span> find a month <span style=\"color: #008800; font-weight: bold;\">from<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">its<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">number<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(Months<span style=\"color: #333333;\">.<\/span>JAN<span style=\"color: #333333;\">.<\/span>value)\r\n<span style=\"color: #888888;\"># prints 1   \/\/useful if you need to find a month's number<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(Months(<span style=\"color: #0000dd; font-weight: bold;\">1<\/span>)<span style=\"color: #333333;\">.<\/span>name)\r\n<span style=\"color: #888888;\"># prints the month's name <\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(Months[<span style=\"background-color: #fff0f0;\">'JAN'<\/span>]<span style=\"color: #333333;\">.<\/span>value <span style=\"color: #333333;\">&gt;<\/span> Months[<span style=\"background-color: #fff0f0;\">'FEB'<\/span>]<span style=\"color: #333333;\">.<\/span>value)\r\n<span style=\"color: #888888;\"># Prints False \/\/Useful for finding out which month has a higher value<\/span>\r\n<\/pre>\n<\/div>\n\n<\/div><h2 class=\"tabtitle\">Pointers<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Pointers<\/h3>\n<p>A pointer is a datatype that refers to a location in memory. It is a form of <a href=\"https:\/\/learnlearn.uk\/alevelcs\/modes-of-addressing\/\">indirect referencing<\/a>. Obtaining the value stored at the memory location is known as dereferencing.<\/p>\n<p><strong>Python note<\/strong><\/p>\n<p>Python does not use pointers, though many other languages (such as C) do. For a discussion why Python doesn&#8217;t use pointers, take a look at <a href=\"https:\/\/realpython.com\/pointers-in-python\/\">this article<\/a>.<\/p>\n\n<\/div><h2 class=\"tabtitle\">Records<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Records<\/h3>\n<p>Records are composite data types that contain references to at least 1 other datatype within them. The advantage of records is that all related data is tied together in one place. They are incredibly useful and popular in many languages.<\/p>\n<p><!-- HTML generated using hilite.me --><\/p>\n<div style=\"background: #ffffff; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;\">\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #888888;\">#Works for Python 3.3+<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">import<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">types<\/span>\r\n\r\ngiraffe <span style=\"color: #333333;\">=<\/span> types<span style=\"color: #333333;\">.<\/span>SimpleNamespace()\r\n\r\ngiraffe<span style=\"color: #333333;\">.<\/span>name <span style=\"color: #333333;\">=<\/span> <span style=\"background-color: #fff0f0;\">\"Gerry\"<\/span>\r\ngiraffe<span style=\"color: #333333;\">.<\/span>height <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">350<\/span>\r\ngiraffe<span style=\"color: #333333;\">.<\/span>age <span style=\"color: #333333;\">=<\/span> <span style=\"color: #0000dd; font-weight: bold;\">15<\/span>\r\ngiraffe<span style=\"color: #333333;\">.<\/span>origin <span style=\"color: #333333;\">=<\/span> <span style=\"background-color: #fff0f0;\">\"Africa\"<\/span>\r\n<\/pre>\n<\/div>\n<h4>CIE Pseudocode &amp; Records<\/h4>\n<p>In the exam the main use of records will be when reading &amp; writing records from\/to random files.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Sets<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Sets<\/strong><\/p>\n<p>Sets are a composite data type that are unordered, iterable, mutable and contain no duplicate elements.<\/p>\n<p>Python sets are in built and are incredibly useful for certain tasks where you need to compare 2 sets in some way.<\/p>\n<p>The main functions are:<\/p>\n<ul>\n<li>Union<\/li>\n<li>Intersection<\/li>\n<li>Difference<\/li>\n<li>Symmetric difference<\/li>\n<\/ul>\n<h3>Python Sets Tutorial<\/h3>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1GWItQtX-f365OO_7ixFYwuOuUbuTTAvf\/view?usp=sharing\">Can&#8217;t access YouTube? Try the Google Drive Version instead.<\/a><\/p>\n<div class=\"nv-iframe-embed\">\n<div class=\"container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded\"><a href=\"https:\/\/www.youtube.com\/watch?v=etXWFOavIxw\" class=\"lazy-load-youtube preview-lazyload preview-youtube\" data-video-title=\"Python Sets tutorial\" title=\"Play video &quot;Python Sets tutorial&quot;\">https:\/\/www.youtube.com\/watch?v=etXWFOavIxw<\/a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href=\"https:\/\/www.youtube.com\/watch?v=etXWFOavIxw\" title=\"Python Sets tutorial\">Python Sets tutorial (https:\/\/www.youtube.com\/watch?v=etXWFOavIxw)<\/a><\/noscript><\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone  wp-image-973\" src=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2020\/09\/Python-sets-tutorial-methods-cie-a-level.png\" alt=\"\" width=\"614\" height=\"377\" srcset=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2020\/09\/Python-sets-tutorial-methods-cie-a-level.png 930w, https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2020\/09\/Python-sets-tutorial-methods-cie-a-level-300x184.png 300w, https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2020\/09\/Python-sets-tutorial-methods-cie-a-level-768x472.png 768w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Python Sets have lots of useful methods <a href=\"https:\/\/www.w3schools.com\/python\/python_sets.asp\">that can be found here<\/a>.<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Challenges<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Challenges<\/h3>\n<p><strong>Challenge 1<\/strong><\/p>\n<p>Create a function called <em>months_between<\/em> that finds out the number of months between 2 months<\/p>\n<p><strong>Challenge 2<\/strong><\/p>\n<p>Create a list of zoo animals in records and print out the details of the animals in a headed table format.<\/p>\n<p><a href=\"https:\/\/learnlearn.uk\/python\/python-console-tables-tutorial\/\">This video may help you.<\/a><\/p>\n<p><strong>Challenge 3<\/strong><\/p>\n<p>Adapt challenge 2 so that the program asks the user to input some parameters(such as maximum height) and only prints out the relevant information.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Resources<\/h2>\n<div class=\"tabcontent\">\n\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1-v4sokz6KRj9V7guNpeDdGYyOwEesBP-HXgHV9jNNdw\/edit?usp=sharing\">User Defined Types Presentation<\/a><\/p>\n<p><a href=\"https:\/\/docs.google.com\/presentation\/d\/1P35rjCCtd1ggtlSkrvEmsi3zwaCNymOi-S_htNH4VTk\/edit?usp=sharing\">Python Sets Presentation<\/a><\/p>\n<p>Exam Questions<\/p>\n<p>May 17 31 &#8211; Qn 1<\/p>\n<p>Nov 18 33 Qn 1<\/p>\n<p>Nov 19 31 Qn 5<\/p>\n<p>Nov 19 32 Qn6<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<\/div><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What are user defined types? Sometimes the use of in-built data types \/ structures are not sufficient to represent the data you are working with. It is therefore necessary to construct your own data types\/structures. User defined types can make programs much easier to code, read and debug. Non-composite vs Composite types Non composite types&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">User Defined Types<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":70,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>User Defined Types - A Level Computer Science<\/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:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"User Defined Types - A Level Computer Science\" \/>\n<meta property=\"og:description\" content=\"What are user defined types? Sometimes the use of in-built data types \/ structures are not sufficient to represent the data you are working with. It is therefore necessary to construct your own data types\/structures. User defined types can make programs much easier to code, read and debug. Non-composite vs Composite types Non composite types&hellip;&nbsp;Read More &raquo;User Defined Types\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/\" \/>\n<meta property=\"og:site_name\" content=\"A Level Computer Science\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-02T05:12:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2020\/09\/Python-sets-tutorial-methods-cie-a-level.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/\",\"name\":\"User Defined Types - A Level Computer Science\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#website\"},\"datePublished\":\"2020-09-23T03:31:39+00:00\",\"dateModified\":\"2021-04-02T05:12:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"A Level Computer Science Home\",\"item\":\"https:\/\/learnlearn.uk\/alevelcs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"User Defined Types\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#website\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/\",\"name\":\"A Level Computer Science\",\"description\":\"CIE Specification\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/alevelcs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#organization\",\"name\":\"A Level Computer Science\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png\",\"width\":710,\"height\":98,\"caption\":\"A Level Computer Science\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"User Defined Types - A Level Computer Science","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:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/","og_locale":"en_GB","og_type":"article","og_title":"User Defined Types - A Level Computer Science","og_description":"What are user defined types? Sometimes the use of in-built data types \/ structures are not sufficient to represent the data you are working with. It is therefore necessary to construct your own data types\/structures. User defined types can make programs much easier to code, read and debug. Non-composite vs Composite types Non composite types&hellip;&nbsp;Read More &raquo;User Defined Types","og_url":"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/","og_site_name":"A Level Computer Science","article_modified_time":"2021-04-02T05:12:01+00:00","og_image":[{"url":"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2020\/09\/Python-sets-tutorial-methods-cie-a-level.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/","url":"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/","name":"User Defined Types - A Level Computer Science","isPartOf":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/#website"},"datePublished":"2020-09-23T03:31:39+00:00","dateModified":"2021-04-02T05:12:01+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/alevelcs\/user-defined-types\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"A Level Computer Science Home","item":"https:\/\/learnlearn.uk\/alevelcs\/"},{"@type":"ListItem","position":2,"name":"User Defined Types"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/alevelcs\/#website","url":"https:\/\/learnlearn.uk\/alevelcs\/","name":"A Level Computer Science","description":"CIE Specification","publisher":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/alevelcs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/alevelcs\/#organization","name":"A Level Computer Science","url":"https:\/\/learnlearn.uk\/alevelcs\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png","contentUrl":"https:\/\/learnlearn.uk\/alevelcs\/wp-content\/uploads\/sites\/20\/2019\/09\/LearnLearnLogowhite.png","width":710,"height":98,"caption":"A Level Computer Science"},"image":{"@id":"https:\/\/learnlearn.uk\/alevelcs\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/alevelcs\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"What are user defined types? Sometimes the use of in-built data types \/ structures are not sufficient to represent the data you are working with. It is therefore necessary to construct your own data types\/structures. User defined types can make programs much easier to code, read and debug. Non-composite vs Composite types Non composite types&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages\/952"}],"collection":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/comments?post=952"}],"version-history":[{"count":17,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages\/952\/revisions"}],"predecessor-version":[{"id":1936,"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/pages\/952\/revisions\/1936"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/alevelcs\/wp-json\/wp\/v2\/media?parent=952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}