Skip to content

Yadavkumarpankaj patch 1 #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 75 additions & 0 deletions Guided_Project_Intersection_of_Lists.ipynb
Original file line number Diff line number Diff line change
@@ -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": [
"<a href=\"https://colab.research.google.com/github/kumarpankaj1945/py/blob/master/Guided_Project_Intersection_of_Lists.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"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",
"```"
]
}
]
}
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -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!
5 changes: 5 additions & 0 deletions new.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# comment
print("Hello World")
# comment
print("Hello World")# 2nd time
a = 2+5