Contact: aviboots(AT)netvision.net.il
41,636 questions
54,299 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] '''