summaryrefslogtreecommitdiff
path: root/getting_started_with_ipython/slides.org
diff options
context:
space:
mode:
authorJovina2011-05-04 12:05:01 +0530
committerJovina2011-05-04 12:05:01 +0530
commit8f769af90d747f7e12e4ef64ec2ee9dabf19b727 (patch)
tree23b5de3ab7c201220de16da2fcbaf6a54e128a0f /getting_started_with_ipython/slides.org
parent19c8f29fa0be1c8697078fbeae780c5aa52b0676 (diff)
downloadst-scripts-8f769af90d747f7e12e4ef64ec2ee9dabf19b727.tar.gz
st-scripts-8f769af90d747f7e12e4ef64ec2ee9dabf19b727.tar.bz2
st-scripts-8f769af90d747f7e12e4ef64ec2ee9dabf19b727.zip
Modified files in module1.
Diffstat (limited to 'getting_started_with_ipython/slides.org')
-rw-r--r--getting_started_with_ipython/slides.org25
1 files changed, 8 insertions, 17 deletions
diff --git a/getting_started_with_ipython/slides.org b/getting_started_with_ipython/slides.org
index 3b6fd2b..a80c454 100644
--- a/getting_started_with_ipython/slides.org
+++ b/getting_started_with_ipython/slides.org
@@ -52,15 +52,13 @@ MHRD, Govt. of India
- look-up documentation of functions.
- interrupt incomplete or incorrect commands.
* Question 1
- Type =ab= and hit tab to see what happens. Next, just type =a= and
- hit tab to see what happens.
+ 1. Type =ab= and hit tab to see what happens.
+ 2. Next, just type =a= and hit tab to see what happens.
* Solution 1
=ab= tab completes to =abs= and =a<tab>= gives us a list of all the
commands starting with a.
* Question 2
- Look-up the documentation of =round= and see how to use it.
-* Solution 2
- =round?=
+ Look-up the documentation of =round= and see how to use it
* Question 3
Check the output of
#+begin_src python
@@ -76,18 +74,10 @@ MHRD, Govt. of India
* Solution 3
We get 2.0, 2.5 and 2.48, which are what we expect.
* Question 4
- Try typing =round(2.484=, and hit enter. and then cancel the command
- using Ctrl-C. Then, type the command, =round(2.484, 2)= and resume
- the video.
-* Solution 4
- #+begin_src python
- round(2.484
- ^C
-
- round(2.484, 2)
- #+end_src
-
-
+ 1. Type =round(2.484=, and hit enter and then cancel the command
+ using Ctrl-C.
+ 2. Then, type the command, =round(2.484, 2)= and resume
+ the video.
* Summary
In this tutorial, we have learnt to –
- invoke the ~ipython~ interpreter by typing ipython.
@@ -137,3 +127,4 @@ MHRD, Govt. of India
#+end_latex
+