summaryrefslogtreecommitdiff
path: root/Practical_C_Programming_by_Steve_Oualline/Chapter_23_1.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:53:46 +0530
committerkinitrupti2017-05-12 18:53:46 +0530
commit6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d (patch)
tree22789c9dbe468dae6697dcd12d8e97de4bcf94a2 /Practical_C_Programming_by_Steve_Oualline/Chapter_23_1.ipynb
parentd36fc3b8f88cc3108ffff6151e376b619b9abb01 (diff)
downloadPython-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.gz
Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.bz2
Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.zip
Removed duplicates
Diffstat (limited to 'Practical_C_Programming_by_Steve_Oualline/Chapter_23_1.ipynb')
-rwxr-xr-xPractical_C_Programming_by_Steve_Oualline/Chapter_23_1.ipynb59
1 files changed, 59 insertions, 0 deletions
diff --git a/Practical_C_Programming_by_Steve_Oualline/Chapter_23_1.ipynb b/Practical_C_Programming_by_Steve_Oualline/Chapter_23_1.ipynb
new file mode 100755
index 00000000..bde77ef6
--- /dev/null
+++ b/Practical_C_Programming_by_Steve_Oualline/Chapter_23_1.ipynb
@@ -0,0 +1,59 @@
+{
+ "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": {}
+ }
+ ]
+} \ No newline at end of file