{ "metadata": { "name": "", "signature": "sha256:456077e76cba45d73549d009e1de5e86e8fe318cfd47c138325bf27f45638790" }, "nbformat": 3, "nbformat_minor": 0, "worksheets": [ { "cells": [ { "cell_type": "heading", "level": 1, "metadata": {}, "source": [ "Chapter 23: Programming adages" ] }, { "cell_type": "heading", "level": 3, "metadata": {}, "source": [ "Example 23.1, Page number: 447" ] }, { "cell_type": "code", "collapsed": false, "input": [ "\n", "# Variable declaration\n", "number = 2\n", "\n", "# Calculation and result\n", "if (number != 2) :\n", " print ('Number is not two\\n')\n", "else :\n", " print ('Number is two\\n')" ], "language": "python", "metadata": {}, "outputs": [ { "output_type": "stream", "stream": "stdout", "text": [ "Number is two\n", "\n" ] } ], "prompt_number": 1 } ], "metadata": {} } ] }