Skip to content

Commit

Permalink
Created using Colaboratory
Browse files Browse the repository at this point in the history
  • Loading branch information
sudhir2016 committed May 18, 2020
1 parent bb86986 commit e40dd3d
Showing 1 changed file with 250 additions and 0 deletions.
250 changes: 250 additions & 0 deletions Python_Data_Types.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,250 @@
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "Python Data Types.ipynb",
"provenance": [],
"authorship_tag": "ABX9TyN5mM+xgZfn7t4HLwhArP6u",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/github/sudhir2016/Alexa/blob/master/Python_Data_Types.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "rPmq-Z4DEvvI",
"colab_type": "text"
},
"source": [
"Python data types"
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "ZLXBTj0hRkLb",
"colab_type": "text"
},
"source": [
"Integer"
]
},
{
"cell_type": "code",
"metadata": {
"id": "wGbDqW9OEntc",
"colab_type": "code",
"colab": {}
},
"source": [
"x= 5"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "UVGgRijxDKDk",
"colab_type": "code",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 34
},
"outputId": "1c2bb246-0273-4535-9d2f-fe4165b35f5a"
},
"source": [
"type(x)"
],
"execution_count": 97,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"int"
]
},
"metadata": {
"tags": []
},
"execution_count": 97
}
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "P8jwOm0qnK3K",
"colab_type": "text"
},
"source": [
"Floating point"
]
},
{
"cell_type": "code",
"metadata": {
"id": "i55nNPn2RJ4W",
"colab_type": "code",
"colab": {}
},
"source": [
"x= 5.0"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "Qd1ArXvenpYj",
"colab_type": "code",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 34
},
"outputId": "0b994405-0da3-4897-cfba-7a84d5968639"
},
"source": [
"type(x)"
],
"execution_count": 99,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"float"
]
},
"metadata": {
"tags": []
},
"execution_count": 99
}
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "kvjp4sBERsfA",
"colab_type": "text"
},
"source": [
"String"
]
},
{
"cell_type": "code",
"metadata": {
"id": "VZNSDMzEl0a2",
"colab_type": "code",
"colab": {}
},
"source": [
"x= 'Hello'"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "dZ6t2qwZFBTd",
"colab_type": "code",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 34
},
"outputId": "bbc3da6b-487f-4dc4-9290-6ef9256825e4"
},
"source": [
"type(x)"
],
"execution_count": 101,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"str"
]
},
"metadata": {
"tags": []
},
"execution_count": 101
}
]
},
{
"cell_type": "markdown",
"metadata": {
"id": "ZBQhsNsAR78p",
"colab_type": "text"
},
"source": [
"Boolean"
]
},
{
"cell_type": "code",
"metadata": {
"id": "i3cD14x2FG-W",
"colab_type": "code",
"colab": {}
},
"source": [
"x= True"
],
"execution_count": 0,
"outputs": []
},
{
"cell_type": "code",
"metadata": {
"id": "b5WaVufiFLFI",
"colab_type": "code",
"colab": {
"base_uri": "https://localhost:8080/",
"height": 34
},
"outputId": "d61a9c81-75c7-4657-97d0-6749e4b27d72"
},
"source": [
"type(x)"
],
"execution_count": 103,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"bool"
]
},
"metadata": {
"tags": []
},
"execution_count": 103
}
]
}
]
}

0 comments on commit e40dd3d

Please sign in to comment.