Positive decimal integers with the digit 1 occurring exactly twice: Difference between revisions

Added Python implementation
(Added Python implementation)
Line 329:
118 119 121 131 141 151 161 171 181
191 211 311 411 511 611 711 811 911
</pre>
 
=={{header|Python}}==
<lang python>
#Aamrun, 5th October 2021
 
from itertools import permutations
 
for i in range(0,10):
if i!=1:
baseList = [1,1]
baseList.append(i)
[print(int(''.join(map(str,j)))) for j in sorted(set(permutations(baseList)))]
</lang>
{{out}}
<pre>
11
101
110
112
121
211
113
131
311
114
141
411
115
151
511
116
161
611
117
171
711
118
181
811
119
191
911
</pre>
 
503

edits