{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "victorian-produce", "metadata": {}, "outputs": [], "source": [ "a = [1,2,3]\n", "b = [\"a\",\"b\",\"c\"]" ] }, { "cell_type": "code", "execution_count": 8, "id": "sought-beginning", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[(0, (1, 'a')), (1, (2, 'b')), (2, (3, 'c'))]" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "[x for x in enumerate(zip(a,b))]" ] }, { "cell_type": "code", "execution_count": null, "id": "recent-lingerie", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "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.8" } }, "nbformat": 4, "nbformat_minor": 5 }