fork(1) download
  1. f = lambda x:[n for n in x if sum(map(int,`n`))**.5%1==0]
  2.  
  3. print f([1,4,9,16,25,1111])
  4. print f([1431,2,0,22,999999999])
  5. print f([22228,4,113125,22345])
  6. print f([])
  7. print f([421337,99,123456789,1133557799])
Success #stdin #stdout 0.01s 8968KB
stdin
Standard input is empty
stdout
[1, 4, 9, 1111]
[1431, 0, 22, 999999999]
[22228, 4, 22345]
[]
[]