# Sum of n even numbers in python

How to find the sum of each row and column of a matrix in python language.There are you will learn how to find the sum of each row & column of a matrix. Take an example to find out this solution through a python program: # How to find the sum of each row and column # of a matrix in python language print ("-----Enter the number of rows & columns of the matrix-----") # These are the matrix's ...In this program, we first read number from user. Then we reverse it using [::-1].After reversing, we convert both number & reverse to integer using int() function.first_digit is obtained by reverse%10 and last_digit is obtained by number%10.Finally we calculate sum of first & last digit to get final result.. Python Source Code: Sum of First & Last Digit