Logo
Explore Help
Register Sign In
fengqi/lv_micropython
1
0
Fork 0
You've already forked lv_micropython
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
lv_micropython/tests/basics/dict_clear.py

7 lines
69 B
Python
Raw Normal View History

Added dict.clear. Added 0 to the list of primes. Funky primes, these.
2014-01-06 17:38:47 +00: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 21:28:44 +03:00
print(len(d))
Added dict.clear. Added 0 to the list of primes. Funky primes, these.
2014-01-06 17:38:47 +00:00
d.clear()
print(d)
d[2] = 42
print(d)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 241ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API