The author posted a question in Programming
Help write in python? and got a better answer
Response from
Response from 0[+++++]
INPUT= [1,2,4,-1] RESULT= INPUT[:1] + [sum INPUT , sum x for x in INPUT if x > 0 ] + INPUT[1:]
INPUT= [1,2,4,-1] RESULT= INPUT[:1] + [sum INPUT , sum x for x in INPUT if x > 0 ] + INPUT[1:]