# make design review for embedded begginers
# PWAM100/basic001/main.py
# description: trainning basic micro python for Embedded beginners
# board: raspberry pi pico 2W
# language: macropythoin
# Firmware: v1.25.0-preview.389.gf187c77da (2025-03-14) .uf2
# IDE: Arduino Lab for MIcroPython 0.11.2 on windows11
# connect pico and pc by usb micro cable
# menu -> connect -> run ... stop
print("\ncodeId:PWAM100/training001")
x=int(100)
y=float(3.14)
z=str("100")
print(x,type(x))
print(y,type(y))
print(z,type(z))
codeId:PWAM100/training001
100 <class 'int'>
3.14 <class 'float'>
100 <class 'str'>
This code snippet demonstrates basic MicroPython data type handling on a Raspberry Pi Pico 2W. It defines three variables: x as an integer, y as a float, and z as a string. The print function is used to display the values and their respective types.
The output confirms that the variables are correctly assigned and their types are identified as expected.
This is a fundamental example for beginners to understand data types in MicroPython, particularly in the context of embedded systems programming.