{"id":29,"date":"2025-10-10T13:48:45","date_gmt":"2025-10-10T13:48:45","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/r_najim\/?p=29"},"modified":"2025-10-10T14:16:37","modified_gmt":"2025-10-10T14:16:37","slug":"friday-oct-10-2025","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/r_najim\/2025\/10\/10\/friday-oct-10-2025\/","title":{"rendered":"Friday Oct, 10, 2025"},"content":{"rendered":"\n<p>Today This Free Friday I am working on a project on YouTube a Number guessing game<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.youtube.com\/watch?v=DLn3jOsNRVE&amp;t=1511s\">https:\/\/www.youtube.com\/watch?v=DLn3jOsNRVE&amp;t=1511s<\/a><\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>import random \n\ntop_of_range = input(\"Type a number: \")\n\nif top_of_range.isdigit():\n    top_of_range = int(top_of_range)\n\n    if top_of_range &lt;= 0:\n        print('Please type a number larger larger than 0 next time.')\n        quit()\nelse:\n    print('Please type a number next time.')\n    quit()<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This part of the code for the number guessing game is to choice a number<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>while True:\n    guesses += 1\n    user_guess = input(\"Make guess: \")\n    if user_guess.isdigit():\n        user_guess = int(user_guess)\n    else:\n        print('Please type a number next time.')\n        continue\n\n     if user_guess == random_number:\n       print(\"You got it!\")\n       break   \n    else:   \n        print(\"You got it wrong!\")\n\nprint(\"You got it in\", guesses, \"guesses\")<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This part of  the code for the  Number guessing game is the counting how much guesses did you  guesses<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today This Free Friday I am working on a project on YouTube a Number guessing game<\/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-29","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":2,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":32,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/posts\/29\/revisions\/32"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/r_najim\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}