Write a method called shifiLeft that takes a 2D array (that could be jagged) as an input and returns the same array with the elements shifted to the left by one position. The first element of the first row goes to the end of the last row. For example: input { {1, 2, 3}, output: { {2, 3, 4}, {4}, {5}, {5, 6, 7, 8}, {6, 7, 8, 9}, {9, 10}1 {10, 1}1
Declare a class named Patient
Data that contains two data members named height_inches and weight_pounds.
Sample output for the given program:
Patient data (before) : 0 in, 0 lbsPatient data (after) : 63 in, 115 lbsclass Patientdа ta:def __init__ (self, height_inches = 0, weight_pounds = 0) : self. height_inches = 0self. weight_pounds = 0 lunaLovegood = PatientData () print ('Patient data (before) : ', end=' ') print (lunaLovegood. height_inches, 'in,', end=' ') print (lunaLovegood. weight_pounds, 'lbs') lunaLovegood. height_inches = 63lunaLovegood. weight_pounds = 115print ('Patient data (after) : ', end=' ') print (lunaLovegood. height_inches, 'in,', end=' ') print (lunaLovegood. weight_pounds, 'lbs')