{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "def add(a, b):\n", " res = a + b\n", " return res\n", "\n", "result = add(1, 2)\n", "print(result)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "i = 0\n", "i += 1\n", "print(i)" ] } ], "metadata": { "kernelspec": { "display_name": "xpython", "language": "python", "name": "xpython" }, "language_info": { "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "version": "3.7.3" } }, "nbformat": 4, "nbformat_minor": 4 }