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
66 changes: 66 additions & 0 deletions Untitled.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"id": "c52d4660",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<module '__main__'>\n"
]
}
],
"source": [
"import pickle as p\n",
"pk=open('py_11.pkl','rb')\n",
"pl=p.load(open(\"py_11.pkl\",'rb'))\n",
"print(pl)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "3a562f18",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<module '__main__'>\n"
]
}
],
"source": [
"import pandas as pd\n",
"obj=pd.read_pickle(pk)\n",
"print(obj)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.10.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
39 changes: 39 additions & 0 deletions pall.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "d34e2c72",
"metadata": {},
"outputs": [],
"source": [
"n=input(\"enter any string\")\n",
"if(n==n[::-1]):\n",
" print(\"number is palllendrome \")\n",
"else:\n",
" print(\"number not pallendrome \")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.10.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
57 changes: 57 additions & 0 deletions pallen.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "3e5bbf1c",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"enter any stringnitin\n",
"number is palllendrome \n"
]
}
],
"source": [
"n=input(\"enter any string\")\n",
"if(n==n[::-1]):\n",
" print(\"number is palllendrome \")\n",
"else:\n",
" print(\"number not pallendrome \")\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "4366ebe4",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.10.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
47 changes: 47 additions & 0 deletions py_1.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 2,
"id": "b4cc3490",
"metadata": {},
"outputs": [],
"source": [
"import dill as dl\n",
"var1 = 1\n",
"var2 = 5\n",
"var3 = var1 + var2\n",
"dl.dump_session(\"py_11.pkl\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "bd140cf0",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.10.9"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Binary file added py_11.pkl
Binary file not shown.