Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to sum up the elements of an integer using python split/join?
Post: RE: How to sum up the elements of an integer using...

Thanks a lot perfringo!!
mohanraj1986 General Coding Help 5 3,535 Aug-27-2018, 06:27 AM
    Thread: How to sum up the elements of an integer using python split/join?
Post: RE: How to sum up the elements of an integer using...

Thanks for you reply. i want the output like this 1+2+3+4= 10
mohanraj1986 General Coding Help 5 3,535 Aug-27-2018, 05:52 AM
    Thread: How to sum up the elements of an integer using python split/join?
Post: How to sum up the elements of an integer using pyt...

I am trying to sum up the elements of an integer using python split join Here is my code, ----------------------- a='1234' b=list(a) c='+'.join(b) print© ##output- 1+2+3+4 -----------------...
mohanraj1986 General Coding Help 5 3,535 Aug-27-2018, 05:18 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020