{"id":38,"date":"2025-10-03T15:39:09","date_gmt":"2025-10-03T15:39:09","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/a_alhallak\/?p=38"},"modified":"2025-10-03T15:39:09","modified_gmt":"2025-10-03T15:39:09","slug":"friday-10-3","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/a_alhallak\/2025\/10\/03\/friday-10-3\/","title":{"rendered":"Friday 10\/3"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Converter<\/h2>\n\n\n\n<p>2 Fridays ago, made this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"394\" height=\"153\" src=\"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image.png\" alt=\"\" class=\"wp-image-39\" srcset=\"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image.png 394w, https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image-300x116.png 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/figure>\n\n\n\n<p>it&#8217;s supposed to convert kg to pounds and pounds to kg, today I started upgrading it to allow it to convert more than one form of units, it is NOT compelete:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"806\" height=\"971\" src=\"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image-1.png\" alt=\"\" class=\"wp-image-40\" style=\"width:510px;height:auto\" srcset=\"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image-1.png 806w, https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image-1-249x300.png 249w, https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image-1-768x925.png 768w\" sizes=\"auto, (max-width: 806px) 100vw, 806px\" \/><\/figure>\n\n\n\n<p> I finished my chapter 3 on Project stem, that took me the whole of the first period, I also wasted so much time checking videos and switching them because they didn&#8217;t seem to work for me: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"596\" src=\"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image-2-1024x596.png\" alt=\"\" class=\"wp-image-41\" srcset=\"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image-2-1024x596.png 1024w, https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image-2-300x175.png 300w, https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image-2-768x447.png 768w, https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-content\/uploads\/2025\/10\/image-2.png 1069w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-code\"><code>#This is my code so far:\nchoice = input(\"what unit will you convert: (W)eight or (T)emperature\")\n\nif choice == str(\"T\"):\ncelsius = float(input(\"Enter temperature in Celsius: \"))\n\nfahrenheit = (celsius * 9 \/ 5) + 32\n\nprint(f\"{celsius}\u00b0C is equal to {fahrenheit:.2f}\u00b0F\")\n\n\n\n\nif choice == str(\"W\"):\n    Weight = int(input(\"weight: \"))\n    unit = input(\"(k)g or (L)bs? \")\n    if unit.upper() == \"K\":\n        converted = Weight \/ 0.45\n        print(f\"Weight in lbs: \" + str(converted))\n    else:\n        converted = Weight * 0.45\n        print(f\"weight in kgs: \" + str(converted))\n\nelse:\n    print(\"Invalid\")<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Converter 2 Fridays ago, made this: it&#8217;s supposed to convert kg to pounds and pounds to kg, today I started [&hellip;]<\/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":"default","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-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-opacity":"","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-opacity":"","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-opacity":"","overlay-gradient":""}},"ast-content-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-opacity":"","overlay-gradient":""},"tablet":{"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-opacity":"","overlay-gradient":""},"mobile":{"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-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/posts\/38\/revisions\/42"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/a_alhallak\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}