aboutsummaryrefslogtreecommitdiff
path: root/challenge-195/deadmarshal/python/ch1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-195/deadmarshal/python/ch1.py')
-rw-r--r--challenge-195/deadmarshal/python/ch1.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/challenge-195/deadmarshal/python/ch1.py b/challenge-195/deadmarshal/python/ch1.py
new file mode 100644
index 0000000000..b48d310af1
--- /dev/null
+++ b/challenge-195/deadmarshal/python/ch1.py
@@ -0,0 +1,10 @@
+def special_integers(n):
+ count = 0
+ for i in range(1,n+1):
+ digits = [int(x) for x in str(i)]
+ if len(digits) == len(set(digits)): count += 1
+ return count
+
+print(special_integers(15))
+print(special_integers(35))
+