We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb43968 commit 8dcc43cCopy full SHA for 8dcc43c
exercises/04.1-count_on/solution.hide.py
@@ -0,0 +1,10 @@
1
+my_list = [42, True, "towel", [2,1], 'hello', 34.4, {"name": "juan"}]
2
+
3
+# Your code here
4
+new_list = []
5
6
+for item in my_list:
7
+ if type(item) == dict or type(item) == list:
8
+ new_list.append(item)
9
10
+print(new_list)
0 commit comments