Last active
January 31, 2021 04:56
-
-
Save vishalsingha/3da0a004b05958a4a4c698ac32007933 to your computer and use it in GitHub Desktop.
Untitled13.ipynb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"nbformat": 4, | |
"nbformat_minor": 0, | |
"metadata": { | |
"colab": { | |
"name": "Untitled13.ipynb", | |
"provenance": [], | |
"authorship_tag": "ABX9TyPWcS0nj5USf6U9SVTS56Xk", | |
"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/gist/vishalsingha/3da0a004b05958a4a4c698ac32007933/untitled13.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "fpArqi18wc_3", | |
"outputId": "538ea638-ce20-43b4-ef31-80051b2c2302" | |
}, | |
"source": [ | |
"a = 2\r\n", | |
"b = 5\r\n", | |
"c = 22\r\n", | |
"d = 22\r\n", | |
"\r\n", | |
"print(a==b)\r\n", | |
"print(a>b)\r\n", | |
"print(a<b)\r\n", | |
"print(a!=b)" | |
], | |
"execution_count": 1, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"False\n", | |
"False\n", | |
"True\n", | |
"True\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "ZhcNYbucxOdd", | |
"outputId": "f018f74f-a498-49ea-c60a-9b4aacef2201" | |
}, | |
"source": [ | |
"print(a>=b)\r\n", | |
"print(a<=b)\r\n", | |
"print(a<=c)" | |
], | |
"execution_count": 2, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"False\n", | |
"True\n", | |
"True\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "Yx4gx0XMyHI2", | |
"outputId": "d43c7279-77de-41e9-9c60-c41a13bd50d0" | |
}, | |
"source": [ | |
"s1 = 'Hi'\r\n", | |
"s2 = 'Hello'\r\n", | |
"s3 = 'Hi'\r\n", | |
"\r\n", | |
"print(s1==s3)\r\n", | |
"print(s1==s2)" | |
], | |
"execution_count": 3, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"True\n", | |
"False\n" | |
], | |
"name": "stdout" | |
} | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"metadata": { | |
"colab": { | |
"base_uri": "https://localhost:8080/" | |
}, | |
"id": "XONpjKkcyeBk", | |
"outputId": "f99121a3-a76f-4fcd-fbe0-87f8f2c9eabb" | |
}, | |
"source": [ | |
"print(s1>s2) # return the value by their order in dictationary" | |
], | |
"execution_count": 4, | |
"outputs": [ | |
{ | |
"output_type": "stream", | |
"text": [ | |
"True\n" | |
], | |
"name": "stdout" | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment