1"""
2categories: Core,Runtime
3description: Local variables aren't included in locals() result
4cause: MicroPython doesn't maintain symbolic local environment, it is optimized to an array of slots. Thus, local variables can't be accessed by a name.
5workaround: Unknown
6"""
7
8
9def test():
10    val = 2
11    print(locals())
12
13
14test()
15