Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/content/authors/new-dev.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "New Dev",
"bio": "Testing author",
"role": "contributor"
}
111 changes: 111 additions & 0 deletions src/content/posts/testing-ew-blog/.write-source.json
Original file line number Diff line number Diff line change
@@ -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": {}
}
67 changes: 67 additions & 0 deletions src/content/posts/testing-ew-blog/index.mdx
Original file line number Diff line number Diff line change
@@ -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!
Loading