From d27a94bc6ecdcd9f2c0e127e567821b5e0094b7d Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 29 Jul 2024 15:40:00 +0100 Subject: [PATCH] Update example_micropython.py --- assets/blog/micropython/example_micropython.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/blog/micropython/example_micropython.py b/assets/blog/micropython/example_micropython.py index af36f82..4eefbe7 100644 --- a/assets/blog/micropython/example_micropython.py +++ b/assets/blog/micropython/example_micropython.py @@ -1,6 +1,7 @@ import asyncio import gc import struct +import sys from array import array import console @@ -58,7 +59,8 @@ def print_buf( print( - "This is μPython saying hello from the on page console!" + "This is μPython saying hello from the on page console!\n" + f"Version {sys.version}" ) console.log( "This is μPython saying hello from the JS console!"