{ "cells": [ { "cell_type": "markdown", "id": "3fafe54a", "metadata": {}, "source": [ "# Print List" ] }, { "cell_type": "code", "execution_count": null, "id": "362a54a1", "metadata": {}, "outputs": [], "source": [ "\"\"\"\n", " Example to append two strings and print\n", "\"\"\"\n", "\n", "def main():\n", " a = [1,2,3,4]\n", " b = [5,6,7,8]\n", "\n", " a.extend(b)\n", "\n", " print(str(a))\n", "\n", "\n", "main()" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "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.9.7" } }, "nbformat": 4, "nbformat_minor": 5 }