From 6401ff10bf12ca12b383103ada3d912a497d2352 Mon Sep 17 00:00:00 2001 From: "ml-systems-publisher[bot]" <304658946+ml-systems-publisher[bot]@users.noreply.github.com> Date: Tue, 14 Jul 2026 06:42:22 +0000 Subject: [PATCH] Add post: Testing Final Blog --- src/content/authors/new-dev.json | 5 + .../posts/testing-ew-blog/.write-source.json | 111 ++++++++++++++++++ src/content/posts/testing-ew-blog/index.mdx | 67 +++++++++++ 3 files changed, 183 insertions(+) create mode 100644 src/content/authors/new-dev.json create mode 100644 src/content/posts/testing-ew-blog/.write-source.json create mode 100644 src/content/posts/testing-ew-blog/index.mdx diff --git a/src/content/authors/new-dev.json b/src/content/authors/new-dev.json new file mode 100644 index 0000000..009d93e --- /dev/null +++ b/src/content/authors/new-dev.json @@ -0,0 +1,5 @@ +{ + "name": "New Dev", + "bio": "Testing author", + "role": "contributor" +} diff --git a/src/content/posts/testing-ew-blog/.write-source.json b/src/content/posts/testing-ew-blog/.write-source.json new file mode 100644 index 0000000..d1a8e54 --- /dev/null +++ b/src/content/posts/testing-ew-blog/.write-source.json @@ -0,0 +1,111 @@ +{ + "kind": "mlsys-write-source", + "version": 1, + "meta": { + "title": "Testing Final Blog", + "summary": "Blog testing Write portal!", + "authors": [ + "felix", + "new-dev" + ], + "writerName": "", + "topicId": "architecture", + "topicName": "Architecture", + "tags": [ + "kernels" + ], + "slug": "testing-ew-blog", + "coverFileName": "", + "proposedTopic": "", + "newAuthor": { + "handle": "new-dev", + "name": "New Dev", + "bio": "Testing author", + "website": "", + "github": "", + "twitter": "", + "linkedin": "", + "email": "" + } + }, + "blocks": [ + { + "id": "04523706-f72e-4f79-9879-e12474a70deb", + "type": "paragraph", + "props": { + "backgroundColor": "default", + "textColor": "default", + "textAlignment": "left" + }, + "content": [ + { + "type": "text", + "text": "Testing blog", + "styles": {} + } + ], + "children": [] + }, + { + "id": "9392a932-d252-40ba-aa20-8abc441472c4", + "type": "paragraph", + "props": { + "backgroundColor": "default", + "textColor": "default", + "textAlignment": "left" + }, + "content": [], + "children": [] + }, + { + "id": "9947353f-972f-4404-a1ff-675d54200ddd", + "type": "paragraph", + "props": { + "backgroundColor": "default", + "textColor": "default", + "textAlignment": "left" + }, + "content": [ + { + "type": "text", + "text": "\n\n", + "styles": {} + } + ], + "children": [] + }, + { + "id": "9d78b2eb-1521-4634-a2fb-c478a55c3af0", + "type": "codeBlock", + "props": { + "language": "python" + }, + "content": [ + { + "type": "text", + "text": "import random\n\n\ndef run_guessing_game():\n \"\"\"A simple interactive game to demonstrate Python fundamentals.\"\"\"\n print(\"Welcome to the Number Guessing Game!\")\n\n # 1. Variables and Data Types\n secret_number = random.randint(1, 10)\n attempts = 0\n max_attempts = 3\n\n # 2. Loops (While Loop)\n while attempts < max_attempts:\n # 3. User Input and Type Conversion\n user_input = input(f\"Guess a number between 1 and 10 (Attempts left: {max_attempts - attempts}): \")\n\n # Validate input is a number\n if not user_input.isdigit():\n print(\"Please enter a valid whole number.\")\n continue\n\n guess = int(user_input)\n attempts += 1\n\n # 4. Conditional Logic (If-Elif-Else)\n if guess == secret_number:\n print(\n f\"🎉 Congratulations! You guessed it in {attempts} attempt(s)!\"\n )\n return # Exit the function early\n elif guess < secret_number:\n print(\"Too low! Try a higher number.\")\n else:\n print(\"Too high! Try a lower number.\")\n\n # Game over scenario\n print(f\"❌ Game over! The correct number was {secret_number}.\")\n\n\n# 5. Function Execution\nif __name__ == \"__main__\":\n run_guessing_game()\n", + "styles": {} + } + ], + "children": [] + }, + { + "id": "efa3b0cb-94a2-4269-aefe-45b35e23a5e3", + "type": "paragraph", + "props": { + "backgroundColor": "default", + "textColor": "default", + "textAlignment": "left" + }, + "content": [ + { + "type": "text", + "text": "\nnice!", + "styles": {} + } + ], + "children": [] + } + ], + "tableVariants": {} +} diff --git a/src/content/posts/testing-ew-blog/index.mdx b/src/content/posts/testing-ew-blog/index.mdx new file mode 100644 index 0000000..cb74e20 --- /dev/null +++ b/src/content/posts/testing-ew-blog/index.mdx @@ -0,0 +1,67 @@ +--- +title: 'Testing Final Blog' +summary: 'Blog testing Write portal!' +authors: ['felix', 'new-dev'] +date: '2026-07-14' +updated: '2026-07-14' +readMin: 1 +topic: 'Architecture' +topicId: 'architecture' +tags: ['kernels'] +--- + +Testing blog + + + + + +```python +import random + + +def run_guessing_game(): + """A simple interactive game to demonstrate Python fundamentals.""" + print("Welcome to the Number Guessing Game!") + + # 1. Variables and Data Types + secret_number = random.randint(1, 10) + attempts = 0 + max_attempts = 3 + + # 2. Loops (While Loop) + while attempts < max_attempts: + # 3. User Input and Type Conversion + user_input = input(f"Guess a number between 1 and 10 (Attempts left: {max_attempts - attempts}): ") + + # Validate input is a number + if not user_input.isdigit(): + print("Please enter a valid whole number.") + continue + + guess = int(user_input) + attempts += 1 + + # 4. Conditional Logic (If-Elif-Else) + if guess == secret_number: + print( + f"🎉 Congratulations! You guessed it in {attempts} attempt(s)!" + ) + return # Exit the function early + elif guess < secret_number: + print("Too low! Try a higher number.") + else: + print("Too high! Try a lower number.") + + # Game over scenario + print(f"❌ Game over! The correct number was {secret_number}.") + + +# 5. Function Execution +if __name__ == "__main__": + run_guessing_game() + +``` + + +nice!