Contact: aviboots(AT)netvision.net.il
40,875 questions
53,283 answers
573 users
s = "python 3 c++ 17 'php 7" lst = [int(c) for c in s.split() if c.isdigit()] print(lst) ''' run: [3, 17, 7] '''