{"id":132,"date":"2024-09-13T15:06:06","date_gmt":"2024-09-13T15:06:06","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_mermur\/?p=132"},"modified":"2024-09-13T15:06:06","modified_gmt":"2024-09-13T15:06:06","slug":"chapter-6-assignment","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_mermur\/2024\/09\/13\/chapter-6-assignment\/","title":{"rendered":"Chapter 6 assignment"},"content":{"rendered":"\n<p>first I started my project for the teacher iwas confused i emaild him about it (thx mrw) he told me its like JSON and next day in school i learnd from him more (thx mrw)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def test_check_grade_level():\n    assert check_grade_level({'grade': 9}) == 'freshman'\n    assert check_grade_level({'grade': 10}) == 'sophomore'\n    assert check_grade_level({'grade': 11}) == 'junior'\n    assert check_grade_level({'grade': 12}) == 'senior'\n    assert check_grade_level({'grade': 8}) == 'Invalid'<\/code><\/pre>\n\n\n\n<p><strong>The function test_check_grade_level is a unit test that verifies the check_grade_level function returns the correct grade level names for given grade values. It uses assertions to check if:<\/strong><\/p>\n\n\n\n<p><strong>Grade 9 returns &#8216;freshman&#8217;<br>Grade 10 returns &#8216;sophomore&#8217;<br>Grade 11 returns &#8216;junior&#8217;<br>Grade 12 returns &#8216;senior&#8217;<br>Any other grade (e.g., 8) returns &#8216;Invalid&#8217;<br>If any assertion fails, the test will fail, indicating an issue with the check_grade_level function.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>first I started my project for the teacher iwas confused i emaild him about it (thx mrw) he told me its like JSON and next day in school i learnd from him more (thx mrw) The function test_check_grade_level is a unit test that verifies the check_grade_level function returns the correct grade level names for given &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/theroyalscode.com\/students\/a_mermur\/2024\/09\/13\/chapter-6-assignment\/\"> <span class=\"screen-reader-text\">Chapter 6 assignment<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_mermur\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_mermur\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_mermur\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_mermur\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_mermur\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/a_mermur\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":136,"href":"https:\/\/theroyalscode.com\/students\/a_mermur\/wp-json\/wp\/v2\/posts\/132\/revisions\/136"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_mermur\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_mermur\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_mermur\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}