This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
mirror of
https://github.com/micropython/micropython.git
Watch
1
Star
0
Fork
You've already forked micropython
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
a5c82a8187
micropython
/
tests
/
bytecode
/
mp-tests
/
scope4.py
15 lines
123 B
Python
Raw
Blame
History
# test scope
def
f
(
x
)
:
global
x42
print
(
x
,
x42
)
x42
=
x
x42
=
123
f
(
1
)
print
(
x42
)
x42
=
456
f
(
2
)
print
(
x42
)
Reference in New Issue
View Git Blame
Copy Permalink