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
50a9dd59f5
micropython
/
tests
/
basics
/
set_copy.py
7 lines
84 B
Python
Raw
Normal View
History
Unescape
Escape
Implemented set.copy
2014-01-12 19:56:25 +04:00
s
=
{
1
,
2
,
3
,
4
}
t
=
s
.
copy
(
)
s
.
add
(
5
)
t
.
add
(
7
)
for
i
in
s
,
t
:
Modify set tests to print sorted sets directly instead of creating temporary lists and sorting those in-place
2014-04-07 08:00:03 +04:00
print
(
sorted
(
i
)
)
Reference in New Issue
Copy Permalink