Registry Synced

Jan 2026 - Python - Week 9 - PPA 13

247 words
1 min read

PPA 13

Course: Jan 2026 - Python
PPA 13
Due Dec 31, 2026 at 11:59 PM IST
Instructions
Use "Test Run" to verify your code with public test cases.
Press "Submit" to have your assignment evaluated.
You can submit your assignment multiple times up until the deadline.
Make sure to submit your final code by the deadline to receive your score.
Summary
- out of100
Score
Public Tests
0/0 Passed
Private Tests
0/0 Passed

Write a recursive function named power that accepts a square matrix AA and a positive integer mm as arguments and returns AmA^{m}.

You do not have to accept input from the user or print the output to the console. You just have to write the function definition.

Public Tests ( 0/0 )

Case 1

Input:
text
public
3
3
1,2,3
4,5,6
7,8,9
Expected Output:
text
468,576,684
1062,1305,1548
1656,2034,2412

Case 2

Input:
text
public
3
2
1,2,3
4,5,6
7,8,10
Expected Output:
text
30,36,45
66,81,102
109,134,169

🔒 Private Tests ( 0/0 )

This test case group is locked and will be revealed after the deadline.


💻 IITM Official Solution

Solution code is currently locked and will be available after the deadline.

💻 My Submitted Code

python
def power(A, m):
    """
    A recursive function to compute A ** m.

    Parameters:
        A: list of lists
        m: integer
    Return:
        result: list of lists
    """

Document Outline
Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.