blob: 1768c4c152577548409fb7524c5aa4d49e890adc (
plain)
1
2
3
4
5
6
7
8
9
10
|
## strInput = "the1weekly2challenge2" ## Example 1
## strInput = "go21od1lu5c7k" ## Example 2
strInput = "4p3e2r1l" ## Example 3
strOutput = "".join([charLoop if charLoop.isnumeric() else " " for charLoop in strInput])
arrOutput = set([int(strNumLoop) for strNumLoop in strOutput.split(" ") if strNumLoop])
print (arrOutput)
|