Professional Documents
Culture Documents
1. Rewrite the code game reshape.txt (uploaded in hello iitk portal) by re-
placing the numpy.reshape commands into a user-defined subroutine. In
other words, you need to write a user-defined function that implements
numpy.reshape, and test it on the given code.
2. Let x be given by the quantity below. Write a code to compute an ap-
proximation of x using recursion.
s r
√
q
x = 6 + 6 + 6 + 6 + ···