0
How to input two digit no. and then print the sum of there digits.
3 Respostas
+ 4
There are a variety of methods to achieve that. What have you tried? It would facilitate your learning process if you can show your code.
0
Please show your own attempt. We aren't here to do your homework😉
0
Do you mean-- 23 -> 2 + 3 = 5?
If so...
Get the two digits (I'm sure you know how to do that), which returns string by default, the do..... my_sum = int(my_num[0] + int(my_num[1].