+ 1
L = [1,3,4,5]
Output is (1+3+4+5)...how can get this as output...can you help me?
7 Answers
+ 5
Your question is unclear, so you want your output to be the sum of the list, or do you want literally the expression (1+3+4+5)
0
Bro..output is (1+3+4+5)..I didn't get that..can someone give the code for that?
0
Use join()
L=[1+3+4+5]
print("+".join(L))
0
I need (1+3+4+5) from L = [1,3,4,5] .just now I got it. Thanks