This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
Watch
1
Star
0
Fork
0
You've already forked micropython
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
d098c6bf85
micropython
/
tests
/
basics
/
dict_clear.py
7 lines
69 B
Python
Raw
Normal View
History
Unescape
Escape
Added dict.clear. Added 0 to the list of primes. Funky primes, these.
2014-01-06 21:38:47 +04:00
d
=
{
1
:
2
,
3
:
4
}
tests: Fix few tests which depend on order of elements in dict. With dict being unordered of course.
2014-04-06 22:28:44 +04:00
print
(
len
(
d
)
)
Added dict.clear. Added 0 to the list of primes. Funky primes, these.
2014-01-06 21:38:47 +04:00
d
.
clear
(
)
print
(
d
)
d
[
2
]
=
42
print
(
d
)
Reference in New Issue
Copy Permalink