+ 1

L = [1,3,4,5]

Output is (1+3+4+5)...how can get this as output...can you help me?

4th Jun 2020, 4:06 AM
Yabesh Sam
Yabesh Sam - avatar
7 Antworten
+ 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)
4th Jun 2020, 5:04 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
4th Jun 2020, 4:13 AM
uday kiran
uday kiran - avatar
0
Bro..output is (1+3+4+5)..I didn't get that..can someone give the code for that?
4th Jun 2020, 4:46 AM
Yabesh Sam
Yabesh Sam - avatar
4th Jun 2020, 5:26 AM
uday kiran
uday kiran - avatar
0
Use join() L=[1+3+4+5] print("+".join(L))
4th Jun 2020, 5:53 AM
ANJALI SAHU
0
I need (1+3+4+5) from L = [1,3,4,5] .just now I got it. Thanks
4th Jun 2020, 6:01 AM
Yabesh Sam
Yabesh Sam - avatar