Skip to content
Open
Show file tree
Hide file tree
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
117 changes: 117 additions & 0 deletions Data structures and their Operations.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[1, 'ananya', 2]\n",
"[1, 'ananya', 2, 'MODY UNIVERSITY']\n",
"[1, 'ananya', 2]\n"
]
}
],
"source": [
"list = [1, \"ananya\", 1+1]\n",
"print(list)\n",
"list[1]\n",
"list.append(\"MODY UNIVERSITY\")\n",
"print(list)\n",
"list.pop()\n",
"print(list)\n"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{1: 'a', 2: 'b'}\n",
"dict_keys([1, 2])\n",
"dict_values(['a', 'b'])\n",
"0 1 a\n",
"1 2 b\n",
"1 a\n",
"2 b\n",
"True\n",
"{2: 'b'}\n",
"False\n"
]
}
],
"source": [
"dictionary = { 1:'a', 2:'b'}\n",
"print(dictionary)\n",
"print(dictionary.keys())\n",
"print(dictionary.values())\n",
"for index, value in enumerate(dictionary): \n",
" print (index, value , dictionary[value])\n",
"for i in dictionary:\n",
" print (\"%d %s\" %(i, dictionary[i]))\n",
"print(1 in dictionary)\n",
"del dictionary[1]\n",
"print(dictionary)\n",
"print(1 in dictionary)\n"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(1, 'ananya', 3)\n",
"ananya\n",
"{1, 2, 3, 4, 5, 6, 7, 8, 9}\n",
"set = {1, 2, 3, 4, 5, 6, 7, 8, 9}\n"
]
}
],
"source": [
"tuple = (1,\"ananya\", 1+2)\n",
"print(tuple)\n",
"print(tuple[1])\n",
"tuple[2]\n",
"\n",
"set = set()\n",
"for i in range(1,10):\n",
" set.add(i)\n",
"print(set)\n",
"print(\"set =\",set)\n",
"\n"
]
}
],
"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.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
51 changes: 51 additions & 0 deletions Installation of various enviornments in python.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"Aim:Learning about the tools and installation of various environment in python.\n",
"Jupyter Notebook\n",
"Project Jupyter exists to develop open-source software, open-standards, and services for interactive computing across dozens of programming languages.\n",
"The Jupyter Notebook is an open-source web application that allows you to create and share documents that contain live code, equations, visualizations and narrative text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, data visualization, machine learning, and much more.\n",
"Functions:\n",
"Language of choice\n",
"Share Notebooks\n",
"Interactive Output\n",
"Big Data integration\n",
"\n",
"Installing Jupyter using Anaconda:-\n",
"For new users, we highly recommend installing Anaconda. Anaconda conveniently installs Python, the Jupyter Notebook, and other commonly used packages for scientific computing and data science.\n",
"Use the following installation steps:\n",
"Download Anaconda. We recommend downloading Anaconda’s latest Python 3 version (currently Python 3.5).\n",
"Install the version of Anaconda which you downloaded, following the instructions on the download page.\n",
"Once you have installed Jupyter Notebook. To run the notebook:\n",
"Click on launch jupyter notebook after starting Anaconda\n",
"\n"
]
}
],
"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.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
98 changes: 98 additions & 0 deletions Linear Separability.ipynb

Large diffs are not rendered by default.

Loading