This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
micropython
Watch
1
Star
0
Fork
0
You've already forked micropython
mirror of
https://github.com/licsber/micropython.git
synced
2024-09-21 09:30:24 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
f8b71aabb4
micropython
/
tests
/
basics
/
set_add.py
4 lines
50 B
Python
Raw
Normal View
History
Unescape
Escape
Implemented set.add
2014-01-12 23:29:11 +08:00
s
=
{
1
,
2
,
3
,
4
}
print
(
s
.
add
(
5
)
)
Modify set tests to print sorted sets directly instead of creating temporary lists and sorting those in-place
2014-04-07 12:00:03 +08:00
print
(
sorted
(
s
)
)
Reference in New Issue
Copy Permalink