1- {
2- "nbformat" : 4 ,
3- "nbformat_minor" : 0 ,
4- "metadata" : {
5- "colab" : {
6- "name" : " ListDict_colab.ipynb" ,
7- "provenance" : [],
8- "collapsed_sections" : [],
9- "include_colab_link" : true
10- },
11- "kernelspec" : {
12- "name" : " python3" ,
13- "display_name" : " Python 3"
14- }
15- },
16- "cells" : [
17- {
18- "cell_type" : " markdown" ,
19- "metadata" : {
20- "id" : " view-in-github" ,
21- "colab_type" : " text"
22- },
23- "source" : [
24- " <a href=\" https://colab.research.google.com/github/sarwansingh/Python/blob/master/ListDict_colab.ipynb\" target=\" _parent\" ><img src=\" https://colab.research.google.com/assets/colab-badge.svg\" alt=\" Open In Colab\" /></a>"
25- ]
26- },
27- {
28- "cell_type" : " code" ,
29- "metadata" : {
30- "id" : " wSqIMUiWb3s2" ,
31- "colab_type" : " code" ,
32- "colab" : {
33- "base_uri" : " https://localhost:8080/" ,
34- "height" : 34
35- },
36- "outputId" : " 3321f49d-d3de-4170-8017-ae44e1f76dea"
37- },
38- "source" : [
39- " student = [[101,\" amit kr\" , 2010.50] , [102 , \" sita devi\" , 4040.90] ]\n " ,
40- " print(student)"
41- ],
42- "execution_count" : 1 ,
43- "outputs" : [
44- {
45- "output_type" : " stream" ,
46- "text" : [
47- " [[101, 'amit kr', 2010.5], [102, 'sita devi', 4040.9]]\n "
48- ],
49- "name" : " stdout"
50- }
51- ]
52- },
53- {
54- "cell_type" : " markdown" ,
55- "metadata" : {
56- "id" : " hw442OR7dfo3" ,
57- "colab_type" : " text"
58- },
59- "source" : [
60- " **Dictonaries explained**"
61- ]
62- },
63- {
64- "cell_type" : " code" ,
65- "metadata" : {
66- "id" : " Qp9ApFGpdqH9" ,
67- "colab_type" : " code" ,
68- "colab" : {}
69- },
70- "source" : [
71- " dict1= {101:\" amit\" , 102 :\" Himmat singh\" , 103 : \" laxman\" }"
72- ],
73- "execution_count" : 0 ,
74- "outputs" : []
75- },
76- {
77- "cell_type" : " code" ,
78- "metadata" : {
79- "id" : " Dyy2fghbd2vO" ,
80- "colab_type" : " code" ,
81- "colab" : {}
82- },
83- "source" : [
84- " "
85- ],
86- "execution_count" : 0 ,
87- "outputs" : []
88- }
89- ]
1+ {
2+ "nbformat" : 4 ,
3+ "nbformat_minor" : 0 ,
4+ "metadata" : {
5+ "colab" : {
6+ "name" : " ListDict_colab.ipynb" ,
7+ "provenance" : [],
8+ "collapsed_sections" : [],
9+ "include_colab_link" : true
10+ },
11+ "kernelspec" : {
12+ "name" : " python3" ,
13+ "display_name" : " Python 3"
14+ }
15+ },
16+ "cells" : [
17+ {
18+ "cell_type" : " markdown" ,
19+ "metadata" : {
20+ "id" : " view-in-github" ,
21+ "colab_type" : " text"
22+ },
23+ "source" : [
24+ " <a href=\" https://colab.research.google.com/github/sarwansingh/Python/blob/master/ListDict_colab.ipynb\" target=\" _parent\" ><img src=\" https://colab.research.google.com/assets/colab-badge.svg\" alt=\" Open In Colab\" /></a>"
25+ ]
26+ },
27+ {
28+ "cell_type" : " code" ,
29+ "metadata" : {
30+ "id" : " wSqIMUiWb3s2" ,
31+ "colab_type" : " code" ,
32+ "colab" : {
33+ "base_uri" : " https://localhost:8080/" ,
34+ "height" : 34
35+ },
36+ "outputId" : " 3321f49d-d3de-4170-8017-ae44e1f76dea"
37+ },
38+ "source" : [
39+ " student = [[101,\" amit kr\" , 2010.50] , [102 , \" sita devi\" , 4040.90] ]\n " ,
40+ " print(student)"
41+ ],
42+ "execution_count" : 1 ,
43+ "outputs" : [
44+ {
45+ "output_type" : " stream" ,
46+ "text" : [
47+ " [[101, 'amit kr', 2010.5], [102, 'sita devi', 4040.9]]\n "
48+ ],
49+ "name" : " stdout"
50+ }
51+ ]
52+ },
53+ {
54+ "cell_type" : " markdown" ,
55+ "metadata" : {
56+ "id" : " hw442OR7dfo3" ,
57+ "colab_type" : " text"
58+ },
59+ "source" : [
60+ " **Dictonaries explained**"
61+ ]
62+ },
63+ {
64+ "cell_type" : " code" ,
65+ "metadata" : {
66+ "id" : " Qp9ApFGpdqH9" ,
67+ "colab_type" : " code" ,
68+ "colab" : {}
69+ },
70+ "source" : [
71+ " dict1= {101:\" amit\" , 102 :\" Himmat singh\" , 103 : \" laxman\" }"
72+ ],
73+ "execution_count" : 0 ,
74+ "outputs" : []
75+ },
76+ {
77+ "cell_type" : " code" ,
78+ "metadata" : {
79+ "id" : " Dyy2fghbd2vO" ,
80+ "colab_type" : " code" ,
81+ "colab" : {}
82+ },
83+ "source" : [
84+ " "
85+ ],
86+ "execution_count" : 0 ,
87+ "outputs" : []
88+ }
89+ ]
9090}
0 commit comments