mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 09:00:23 +08:00
9 lines
85 B
Python
9 lines
85 B
Python
|
# negative power should produce float
|
||
|
|
||
|
x = 2
|
||
|
print(x ** -2)
|
||
|
|
||
|
x = 3
|
||
|
x **= -2
|
||
|
print(x)
|