Skip to content

Commit a0d0c94

Browse files
Created using Colaboratory
1 parent fbfcc23 commit a0d0c94

File tree

1 file changed

+176
-0
lines changed

1 file changed

+176
-0
lines changed

conversion_of_elements.ipynb

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
{
2+
"nbformat": 4,
3+
"nbformat_minor": 0,
4+
"metadata": {
5+
"colab": {
6+
"private_outputs": true,
7+
"provenance": [],
8+
"authorship_tag": "ABX9TyPEG/Dt1B1vfhRQplA4Fhxf",
9+
"include_colab_link": true
10+
},
11+
"kernelspec": {
12+
"name": "python3",
13+
"display_name": "Python 3"
14+
},
15+
"language_info": {
16+
"name": "python"
17+
},
18+
"gpuClass": "standard"
19+
},
20+
"cells": [
21+
{
22+
"cell_type": "markdown",
23+
"metadata": {
24+
"id": "view-in-github",
25+
"colab_type": "text"
26+
},
27+
"source": [
28+
"<a href=\"https://colab.research.google.com/github/DakshCodess/elements-conversion/blob/main/conversion_of_elements.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
29+
]
30+
},
31+
{
32+
"cell_type": "code",
33+
"execution_count": null,
34+
"metadata": {
35+
"id": "xQBCT_0Fi3n6"
36+
},
37+
"outputs": [],
38+
"source": [
39+
"a=10.5\n",
40+
"print((a), type(a))\n",
41+
"\n",
42+
"b=int(a)\n",
43+
"print((b), type(b))"
44+
]
45+
},
46+
{
47+
"cell_type": "code",
48+
"source": [
49+
"a='10'\n",
50+
"print((a), type(a))\n",
51+
"\n",
52+
"b=int(a)\n",
53+
"print((b), type(b))"
54+
],
55+
"metadata": {
56+
"id": "KvYE7p2xj8lY"
57+
},
58+
"execution_count": null,
59+
"outputs": []
60+
},
61+
{
62+
"cell_type": "code",
63+
"source": [
64+
"a=True\n",
65+
"print((a), type(a))\n",
66+
"\n",
67+
"b=int(a)\n",
68+
"print((b), type(b))"
69+
],
70+
"metadata": {
71+
"id": "zXUhOz9JkTSG"
72+
},
73+
"execution_count": null,
74+
"outputs": []
75+
},
76+
{
77+
"cell_type": "code",
78+
"source": [
79+
"a=10\n",
80+
"print((a), type(a))\n",
81+
"\n",
82+
"b=float(a)\n",
83+
"print((b), type(b))"
84+
],
85+
"metadata": {
86+
"id": "oVDYRktkku1r"
87+
},
88+
"execution_count": null,
89+
"outputs": []
90+
},
91+
{
92+
"cell_type": "code",
93+
"source": [
94+
"a=False\n",
95+
"print((a), type(a))\n",
96+
"\n",
97+
"b=float(a)\n",
98+
"print((b), type(b))"
99+
],
100+
"metadata": {
101+
"id": "MBENa3dhlHC_"
102+
},
103+
"execution_count": null,
104+
"outputs": []
105+
},
106+
{
107+
"cell_type": "code",
108+
"source": [
109+
"a=10\n",
110+
"print((a), type(a))\n",
111+
"\n",
112+
"b=str(a)\n",
113+
"print((b), type(b))"
114+
],
115+
"metadata": {
116+
"id": "yDClGdMglvCH"
117+
},
118+
"execution_count": null,
119+
"outputs": []
120+
},
121+
{
122+
"cell_type": "code",
123+
"source": [
124+
"a=10.5\n",
125+
"print((a), type(a))\n",
126+
"\n",
127+
"b=str(a)\n",
128+
"print((b), type(b))"
129+
],
130+
"metadata": {
131+
"id": "wIpAfEWslHFr"
132+
},
133+
"execution_count": null,
134+
"outputs": []
135+
},
136+
{
137+
"cell_type": "code",
138+
"source": [
139+
"a=True\n",
140+
"print((a), type(a))\n",
141+
"\n",
142+
"b=str(a)\n",
143+
"print((b), type(b))"
144+
],
145+
"metadata": {
146+
"id": "QTqv9bvClHH4"
147+
},
148+
"execution_count": null,
149+
"outputs": []
150+
},
151+
{
152+
"cell_type": "code",
153+
"source": [
154+
"s1='Python'\n",
155+
"print((s1), type(s1))\n",
156+
"\n",
157+
"list=list(s1)\n",
158+
"print((list), type(list))"
159+
],
160+
"metadata": {
161+
"id": "LwImAcIolHKb"
162+
},
163+
"execution_count": null,
164+
"outputs": []
165+
},
166+
{
167+
"cell_type": "code",
168+
"source": [],
169+
"metadata": {
170+
"id": "A_qpUvT-kibq"
171+
},
172+
"execution_count": null,
173+
"outputs": []
174+
}
175+
]
176+
}

0 commit comments

Comments
 (0)