Skip to content

Commit 8dcc43c

Browse files
authored
Create solution.hide.py
1 parent fb43968 commit 8dcc43c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)