--- a/input_output/script.rst Mon Oct 11 00:58:58 2010 +0530
+++ b/input_output/script.rst Mon Oct 11 00:59:36 2010 +0530
@@ -6,6 +6,12 @@
C -
D -
+.. #. How to print some value
+.. #. How to print using modifiers
+.. #. How to take input from user
+.. #. How to display a prompt to the user before taking the input
+
+
.. Prerequisites
.. -------------
@@ -73,7 +79,7 @@
{{{ Pause here and try out the following exercises }}}
-%% 1 %% What happens when you do print "x is %d y is %f"%(x)
+%% 1 %% What happens when you do ``print "x is %d y is %f" %(x, y)``
{{{ continue from paused state }}}
@@ -172,6 +178,9 @@
{{{ continue from paused state }}}
+.. #[Puneeth: We didn't talk of new-line character till now, did we?]
+.. #[Puneeth: non-programmers might not know?]
+
The trick is to include a newline character at the end of the prompt string.
::