From 9b5c5f7e78df35d55737c6ce086fc2bbf51f3139 Mon Sep 17 00:00:00 2001 From: Amit Sethi Date: Tue, 9 Nov 2010 15:49:45 +0530 Subject: input-output review --- input_output/script.rst | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/input_output/script.rst b/input_output/script.rst index b35507d..62b7cf3 100644 --- a/input_output/script.rst +++ b/input_output/script.rst @@ -38,11 +38,9 @@ type a print a -<<<<<<< local -print a, prints the value of a. -======= + ``print a``, obviously, is printing the value of ``a``. ->>>>>>> other + As you can see, even when you type just a, the value of a is shown. But there is a difference. @@ -67,16 +65,13 @@ does not have any effect on the program while running it as a script. We shall look at different ways of outputting the data. -<<<<<<< local + .. #[Amit: C's printf syntax ?? i think its better to elaborate the idea] print statement in python supports string formatting. Various arguments can be passed to print using modifiers. -======= -``print`` statement also accepts the syntax of C's ``printf`` statement. -Various arguments can be passed to ``print`` using modifiers. ->>>>>>> other + type :: -- cgit