SHARE
TWEET

Untitled

a guest Jul 16th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.  "cells": [
  3.   {
  4.    "cell_type": "code",
  5.    "execution_count": 1,
  6.    "metadata": {},
  7.    "outputs": [],
  8.    "source": [
  9.     "d={'name':'xyz','age':20,'dob':19/12/98,'gender':'female'}"
  10.    ]
  11.   },
  12.   {
  13.    "cell_type": "code",
  14.    "execution_count": 2,
  15.    "metadata": {},
  16.    "outputs": [
  17.     {
  18.      "data": {
  19.       "text/plain": [
  20.        "0.016156462585034014"
  21.       ]
  22.      },
  23.      "execution_count": 2,
  24.      "metadata": {},
  25.      "output_type": "execute_result"
  26.     }
  27.    ],
  28.    "source": [
  29.     "d['dob']"
  30.    ]
  31.   },
  32.   {
  33.    "cell_type": "code",
  34.    "execution_count": 3,
  35.    "metadata": {},
  36.    "outputs": [
  37.     {
  38.      "data": {
  39.       "text/plain": [
  40.        "'19/12/98'"
  41.       ]
  42.      },
  43.      "execution_count": 3,
  44.      "metadata": {},
  45.      "output_type": "execute_result"
  46.     }
  47.    ],
  48.    "source": [
  49.     "d={'name':'xyz','age':20,'dob':'19/12/98','gender':'female'}\n",
  50.     "d['dob']"
  51.    ]
  52.   },
  53.   {
  54.    "cell_type": "code",
  55.    "execution_count": 4,
  56.    "metadata": {},
  57.    "outputs": [
  58.     {
  59.      "data": {
  60.       "text/plain": [
  61.        "{'name': 'xyz',\n",
  62.        " 'age': 20,\n",
  63.        " 'dob': '19/12/98',\n",
  64.        " 'gender': 'female',\n",
  65.        " 'profession': 'student'}"
  66.       ]
  67.      },
  68.      "execution_count": 4,
  69.      "metadata": {},
  70.      "output_type": "execute_result"
  71.     }
  72.    ],
  73.    "source": [
  74.     "d['profession']='student'\n",
  75.     "d"
  76.    ]
  77.   },
  78.   {
  79.    "cell_type": "code",
  80.    "execution_count": 5,
  81.    "metadata": {},
  82.    "outputs": [],
  83.    "source": [
  84.     "del(d['age'])"
  85.    ]
  86.   },
  87.   {
  88.    "cell_type": "code",
  89.    "execution_count": 6,
  90.    "metadata": {},
  91.    "outputs": [
  92.     {
  93.      "data": {
  94.       "text/plain": [
  95.        "{'name': 'xyz', 'dob': '19/12/98', 'gender': 'female', 'profession': 'student'}"
  96.       ]
  97.      },
  98.      "execution_count": 6,
  99.      "metadata": {},
  100.      "output_type": "execute_result"
  101.     }
  102.    ],
  103.    "source": [
  104.     "d"
  105.    ]
  106.   },
  107.   {
  108.    "cell_type": "code",
  109.    "execution_count": null,
  110.    "metadata": {},
  111.    "outputs": [],
  112.    "source": [
  113.     "'na'"
  114.    ]
  115.   }
  116.  ],
  117.  "metadata": {
  118.   "kernelspec": {
  119.    "display_name": "Python 3",
  120.    "language": "python",
  121.    "name": "python3"
  122.   },
  123.   "language_info": {
  124.    "codemirror_mode": {
  125.     "name": "ipython",
  126.     "version": 3
  127.    },
  128.    "file_extension": ".py",
  129.    "mimetype": "text/x-python",
  130.    "name": "python",
  131.    "nbconvert_exporter": "python",
  132.    "pygments_lexer": "ipython3",
  133.    "version": "3.6.8"
  134.   }
  135.  },
  136.  "nbformat": 4,
  137.  "nbformat_minor": 2
  138. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top