diff --git a/Guided_Project_Intersection_of_Lists.ipynb b/Guided_Project_Intersection_of_Lists.ipynb new file mode 100644 index 00000000..007afd86 --- /dev/null +++ b/Guided_Project_Intersection_of_Lists.ipynb @@ -0,0 +1,75 @@ +{ + "nbformat": 4, + "nbformat_minor": 0, + "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.7.1" + }, + "colab": { + "name": "Guided Project - Intersection of Lists.ipynb", + "provenance": [], + "collapsed_sections": [], + "include_colab_link": true + } + }, + "cells": [ + { + "cell_type": "markdown", + "metadata": { + "id": "view-in-github", + "colab_type": "text" + }, + "source": [ + "\"Open" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "id": "rtBrwN-Aexbo" + }, + "source": [ + "Given a list of n lists, write a function which returns the intersection of all the n lists. Each list can have any number of elements.\n", + "\n", + "Example 1:\n", + "\n", + "```\n", + "input = [[5, 5, 5, 8, 10], \n", + " [5, 5, 7, 8], \n", + " [5, 5, 8, 9, 11]]\n", + "```\n", + "\n", + "```\n", + "output = [5, 5, 8]\n", + "```\n", + "\n", + "Example 2:\n", + "\n", + "```\n", + "input = [[5, 6], \n", + " [5, 5, 7, 8], \n", + " [5, 5, 8, 9]]\n", + "```\n", + "\n", + "\n", + "```\n", + "output = [5]\n", + "```" + ] + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 009533ed..acf0a50a 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,3 @@ Repository to store sample Python programs. This repository is meant for beginners to assist them in their learning of Python. The repository covers a wide range of algorithms and other programs, and would prove immensely helpful for everybody interested in Python programming. -If this is your first time coding in Python, I would love to suggest you begin from the [Basics](https://github.com/codebasics/py/tree/master/Basics). They are simple to understand and hopefully will prove fun to you. - -You can also pay a visit to my very own [Youtube channel](https://www.youtube.com/channel/UCh9nVJoWXmFb7sLApWGcLPQ). - -Contributions to the repository are welcome. - -[![CodeBasics](https://yt3.ggpht.com/ytc/AAUvwnihwx4a5idwBTE5JFpXHb-ykyh-i1gXtFiGJYV1=s176-c-k-c0x00ffffff-no-rj)](https://www.youtube.com/channel/UCh9nVJoWXmFb7sLApWGcLPQ). - -#### Happy coding! diff --git a/new.py b/new.py new file mode 100644 index 00000000..b88aaa74 --- /dev/null +++ b/new.py @@ -0,0 +1,4 @@ +# comment +print("Hello World") +# comment +print("Hello World")# 2nd time