summaryrefslogtreecommitdiff
path: root/Computer_Concepts_and_C_Programming_by_R.Rajaram/chapter7_5.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:40:35 +0530
committerkinitrupti2017-05-12 18:40:35 +0530
commitd36fc3b8f88cc3108ffff6151e376b619b9abb01 (patch)
tree9806b0d68a708d2cfc4efc8ae3751423c56b7721 /Computer_Concepts_and_C_Programming_by_R.Rajaram/chapter7_5.ipynb
parent1b1bb67e9ea912be5c8591523c8b328766e3680f (diff)
downloadPython-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.gz
Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.tar.bz2
Python-Textbook-Companions-d36fc3b8f88cc3108ffff6151e376b619b9abb01.zip
Revised list of TBCs
Diffstat (limited to 'Computer_Concepts_and_C_Programming_by_R.Rajaram/chapter7_5.ipynb')
-rwxr-xr-xComputer_Concepts_and_C_Programming_by_R.Rajaram/chapter7_5.ipynb114
1 files changed, 0 insertions, 114 deletions
diff --git a/Computer_Concepts_and_C_Programming_by_R.Rajaram/chapter7_5.ipynb b/Computer_Concepts_and_C_Programming_by_R.Rajaram/chapter7_5.ipynb
deleted file mode 100755
index e3d4fa14..00000000
--- a/Computer_Concepts_and_C_Programming_by_R.Rajaram/chapter7_5.ipynb
+++ /dev/null
@@ -1,114 +0,0 @@
-{
- "metadata": {
- "name": "",
- "signature": "sha256:748883adf9987fa80917596c14388a91ad8fe34d417a5435c22239cebb03b99e"
- },
- "nbformat": 3,
- "nbformat_minor": 0,
- "worksheets": [
- {
- "cells": [
- {
- "cell_type": "heading",
- "level": 1,
- "metadata": {},
- "source": [
- "7.OPERATORS AND EXPRESSION"
- ]
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "7.4.1,page number:145"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "number = 19+9\n",
- "print \"The month of Februry has\",number,\"days\""
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "The month of Februry has 28 days\n"
- ]
- }
- ],
- "prompt_number": 1
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "7.4.2,page number:145"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "number=15\n",
- "total=number*4\n",
- "print total,\"is 4 times greater than\",number,\"number.\""
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "60 is 4 times greater than 15 number.\n"
- ]
- }
- ],
- "prompt_number": 1
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "7.8.1,page number:150"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "m = 2\n",
- "n = 12.34\n",
- "result=m*n\n",
- "print m,\"*\",n,\"=\",result\n",
- "print result,\"in scientific notation is\",\"{:.2E}\".format(result)\n",
- "print m,\"*\",n,\"=\",round(result)"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "2 * 12.34 = 24.68\n",
- "24.68 in scientific notation is 2.47E+01\n",
- "2 * 12.34 = 25.0\n"
- ]
- }
- ],
- "prompt_number": 2
- }
- ],
- "metadata": {}
- }
- ]
-} \ No newline at end of file