Skip to content

Commit ad47096

Browse files
authored
Update solution.hide.py
1 parent 475fc38 commit ad47096

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
def generate_dict(n):
2-
d=dict()
3-
for i in range(1,n+1):
4-
d[i]=i*i
5-
return d
1+
# Your code here
2+
def squares_dictionary(n):
3+
new_dict = dict()
4+
for i in range(1, n + 1):
5+
new_dict[i] = i * i
6+
return new_dict
67

7-
print(generate_dict(n))
8+
print(squares_dictionary(5))

0 commit comments

Comments
 (0)