Skip to content

Instantly share code, notes, and snippets.

@glowskir
Created April 3, 2014 07:44
Show Gist options
  • Save glowskir/9949983 to your computer and use it in GitHub Desktop.
Save glowskir/9949983 to your computer and use it in GitHub Desktop.
{
"metadata": {
"name": "dict_equality"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "code",
"collapsed": false,
"input": "{'janusz':'palikot'} == {'maria':'palikot'}",
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 1,
"text": "False"
}
],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": "{'janusz':'palikot'} == {'janusz':'palikot'}",
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 2,
"text": "True"
}
],
"prompt_number": 2
},
{
"cell_type": "code",
"collapsed": false,
"input": "{u'janusz':'palikot'} == {'janusz':u'palikot'}",
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 3,
"text": "True"
}
],
"prompt_number": 3
},
{
"cell_type": "code",
"collapsed": false,
"input": "{1:0,'janusz':'palikot'} == {1:0,'janusz':'palikot'}",
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 4,
"text": "True"
}
],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": false,
"input": "{1:0,'janusz':'palikot'} == {'janusz':'palikot',1:0}",
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 6,
"text": "True"
}
],
"prompt_number": 6
},
{
"cell_type": "code",
"collapsed": false,
"input": "",
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment