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 ca7944e commit d9e59d9Copy full SHA for d9e59d9
squared.py
@@ -0,0 +1,11 @@
1
+def square_digits(num):
2
+ result = ""
3
+ num = str(num)
4
+ for i in num:
5
+ result += str(int(i) ** 2)
6
+ return int(result)
7
+
8
9
10
11
+print square_digits(9119)
0 commit comments