{ "cells": [ { "cell_type": "code", "execution_count": 4, "id": "ba671cca", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Hello World\n" ] } ], "source": [ "print(\"Hello World\")" ] }, { "cell_type": "code", "execution_count": 6, "id": "ca458c1e", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "8\n" ] } ], "source": [ "print(3+5)" ] }, { "cell_type": "code", "execution_count": 15, "id": "2b5d6a8c", "metadata": {}, "outputs": [], "source": [ "import numpy as np" ] }, { "cell_type": "code", "execution_count": 16, "id": "91fa372d", "metadata": {}, "outputs": [], "source": [ "v=np.array([1,2,3,4,5])" ] }, { "cell_type": "code", "execution_count": 14, "id": "c0984eda", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "15" ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "v.sum()" ] }, { "cell_type": "code", "execution_count": 11, "id": "b78cc209", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "3.0" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "v.mean()" ] }, { "cell_type": "code", "execution_count": null, "id": "475eb596", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python (ML)", "language": "python", "name": "ml_env" }, "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.10.6" } }, "nbformat": 4, "nbformat_minor": 5 }