Sign up for Free !!
World's first open source developer community with
Ticketing System
l1=[20,30,10.5]
I have the following list I want the output as:
[30,40,20.5]
I want the most efficient way of answer
l1=[20,30,10.5] result = [item+10 for item in l1] print(result)
this will give you desired output
Please Login/Register to write your answer !!!
this will give you desired output