{ "cells": [ { "cell_type": "markdown", "metadata": { "colab_type": "text", "id": "vHFI6GfMGMSm" }, "source": [ "# Introduction to Python \n", "\n", "### Numpy" ] }, { "cell_type": "markdown", "metadata": { "colab_type": "text", "id": "1M6ZR6T6GrFW" }, "source": [ "#### 1) Create a function that receives an integer N as argument and returns a matrix $N x N$ with \"ones\" on the edges and \"zeros\" inside" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": { "colab_type": "text", "id": "nkPlX2_YHVBJ" }, "source": [ "#### 2) Create a function that transpose a matrix without using the method np.transpose or np.array.T." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "markdown", "metadata": { "colab_type": "text", "id": "BjQQns18IJTN" }, "source": [ "#### 3) Create two 1d arrays with length 10 that contains random integers from 0 to 1000. How many iterations does it take until the sum of their values are the same?" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "colab": { "collapsed_sections": [], "name": "3rd Assignment.ipynb", "provenance": [] }, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.5" } }, "nbformat": 4, "nbformat_minor": 4 }