(num)
| 18 | |
| 19 | # Function that finds the sum of integers of both c,m |
| 20 | def getSum(num): |
| 21 | s = 0 |
| 22 | while num>0: |
| 23 | s += int(num%10) |
| 24 | num = int(num/10) |
| 25 | return s |
| 26 | |
| 27 | # appending the sum of integers of c,m to the respective lists |
| 28 | a.append(getSum(c)) |