From ca18723f205acfca5bd4b9aa35593dd46d97618b Mon Sep 17 00:00:00 2001 From: kumarpankaj1945 <104052797+kumarpankaj1945@users.noreply.github.com> Date: Tue, 31 May 2022 11:20:15 +0530 Subject: [PATCH 1/5] Created using Colaboratory --- Guided_Project_Intersection_of_Lists.ipynb | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Guided_Project_Intersection_of_Lists.ipynb 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 From 1ec893521c5ecd7f7f11392a34b8cec96e737255 Mon Sep 17 00:00:00 2001 From: Pankaj Kumar Yadav <104052797+yadavkumarpankaj@users.noreply.github.com> Date: Thu, 16 Jun 2022 08:58:48 +0530 Subject: [PATCH 2/5] Update README.md --- README.md | 9 --------- 1 file changed, 9 deletions(-) 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! From 9fa8167badbc308cdb9ccf677f6137961eba7786 Mon Sep 17 00:00:00 2001 From: Pankaj Kumar Yadav <104052797+yadavkumarpankaj@users.noreply.github.com> Date: Sat, 31 Dec 2022 11:33:23 +0530 Subject: [PATCH 3/5] added.file --- new.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 new.py diff --git a/new.py b/new.py new file mode 100644 index 00000000..96493c0d --- /dev/null +++ b/new.py @@ -0,0 +1,2 @@ +# comment +print("Hello World") From de1c14ab1d6e5db87d6bd91a113f6fd596b1c414 Mon Sep 17 00:00:00 2001 From: Pankaj Kumar Yadav <104052797+yadavkumarpankaj@users.noreply.github.com> Date: Sat, 31 Dec 2022 11:36:07 +0530 Subject: [PATCH 4/5] Update new.py --- new.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/new.py b/new.py index 96493c0d..b88aaa74 100644 --- a/new.py +++ b/new.py @@ -1,2 +1,4 @@ # comment print("Hello World") +# comment +print("Hello World")# 2nd time From 652755a810b7fca9ebee50f0233e9d9db1d332da Mon Sep 17 00:00:00 2001 From: Pankaj Kumar Yadav <104052797+yadavkumarpankaj@users.noreply.github.com> Date: Sat, 31 Dec 2022 12:05:56 +0530 Subject: [PATCH 5/5] Update new.py --- new.py | 1 + 1 file changed, 1 insertion(+) diff --git a/new.py b/new.py index b88aaa74..2d9b0282 100644 --- a/new.py +++ b/new.py @@ -2,3 +2,4 @@ print("Hello World") # comment print("Hello World")# 2nd time +a = 2+5