Skip to content

Instantly share code, notes, and snippets.

@asaini
Created August 6, 2013 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asaini/6169343 to your computer and use it in GitHub Desktop.
Save asaini/6169343 to your computer and use it in GitHub Desktop.
Hello Python
{
"metadata": {
"name": "intro"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": "Hello Python"
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": "Installing Python"
},
{
"cell_type": "markdown",
"metadata": {},
"source": "Python can be easily installed from the the python <a href=\"http://www.python.org/download/releases/2.7.3/\">Link</a>"
},
{
"cell_type": "code",
"collapsed": false,
"input": "",
"language": "python",
"metadata": {},
"outputs": []
},
{
"cell_type": "heading",
"level": 3,
"metadata": {},
"source": "Exploring the Python Shell"
},
{
"cell_type": "heading",
"level": 5,
"metadata": {},
"source": "Numbers"
},
{
"cell_type": "code",
"collapsed": false,
"input": "2",
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 1,
"text": "2"
}
],
"prompt_number": 1
},
{
"cell_type": "code",
"collapsed": false,
"input": "100",
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 2,
"text": "100"
}
],
"prompt_number": 2
},
{
"cell_type": "code",
"collapsed": false,
"input": "0.1",
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 3,
"text": "0.1"
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 5,
"metadata": {},
"source": "Strings"
},
{
"cell_type": "code",
"collapsed": false,
"input": "'Hi'",
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 4,
"text": "'Hi'"
}
],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": false,
"input": "'Hello'",
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 5,
"text": "'Hello'"
}
],
"prompt_number": 5
},
{
"cell_type": "code",
"collapsed": false,
"input": "\"This is also a string\"",
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 6,
"text": "'This is also a string'"
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 5,
"metadata": {},
"source": "Lists"
},
{
"cell_type": "heading",
"level": 6,
"metadata": {},
"source": "A list of numbers"
},
{
"cell_type": "code",
"collapsed": false,
"input": "[1,2,3,4]",
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "pyout",
"prompt_number": 7,
"text": "[1, 2, 3, 4]"
}
],
"prompt_number": 7
},
{
"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