{"id":46,"date":"2025-10-10T13:52:23","date_gmt":"2025-10-10T13:52:23","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/l_smith\/?p=46"},"modified":"2025-10-10T13:52:23","modified_gmt":"2025-10-10T13:52:23","slug":"nfl-project","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/l_smith\/2025\/10\/10\/nfl-project\/","title":{"rendered":"nfl project"},"content":{"rendered":"\n<p>hey guys frist off i want it to be known that we are closer then ever to finishing this project reson being i got the input to work this was a 1 class day so i didnt get to much done but im almost done <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import random\n\nhome_team = input(\"Enter home team name: \")\naway_team = input(\"Enter away team name: \")\nhome_score = int(input(f\"Enter {home_team}'s score: \"))\naway_score = int(input(f\"Enter {away_team}'s score: \"))\n\nprint(f\"\\nMatch Result: {home_team} {home_score} - {away_team} {away_score}\")\ndef get_valid_score(prompt):\n    while True:\n        try:\n            \n            score = int(input(prompt))\n            print (prompt)\n            \n            \n            if 0 &lt;= score &lt;= 72:\n                return score \n            else:\n                print(\"Error: The score must be between 0 and 72. Please try again.\")\n        \n        except ValueError:\n            print(\"Error: That's not a valid number. Please enter an integer.\")\n\n\n\nteam_a_name = &#91;]\nteam_a_score = &#91;]\n\nteam_b_name = &#91;]\nteam_b_score = &#91;]\n\nprint(f\"{team_a_name} score: {team_a_score}\")\nprint(f\"{team_b_name} score: {team_b_score}\")\n\n<\/code><\/pre>\n\n\n\n<p>this is the code that puts the scores as a final score so for example the cowboys and packers you would type DAL for dallas and GB for green bay it would ask for DAL SCORE AND GB SCORE SO  32-17whatever team has 32 would win because 32 is bigger then 17 the rage for score is 0-72 because 72 is the max a nfl team ever sorced    <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"676\" src=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/10\/image-2.png\" alt=\"\" class=\"wp-image-43\" srcset=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/10\/image-2.png 735w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/10\/image-2-300x276.png 300w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><\/figure>\n\n\n\n<p>this screenshot explans in  more detall <\/p>\n\n\n\n<p>this is the code that puts the scores as a final score so for example the cowboys and packers you would type DAL for dallas and GB for green bay it would ask for DAL SCORE AND GB SCORE SO  32-17whatever team has 32 would win because 32 is bigger then 17 the rage for score is 0-72 because 72 is the max a nfl team ever sorced    <\/p>\n","protected":false},"excerpt":{"rendered":"<p>hey guys frist off i want it to be known that we are closer then ever to finishing this project reson being i got the input to work this was a 1 class day so i didnt get to much done but im almost done this is the code that puts the scores as a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":47,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/46\/revisions\/47"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}