diff options
author | Amit Sethi | 2010-11-09 15:49:45 +0530 |
---|---|---|
committer | Amit Sethi | 2010-11-09 15:49:45 +0530 |
commit | 9b5c5f7e78df35d55737c6ce086fc2bbf51f3139 (patch) | |
tree | 302ec7a0197959a1d769d2b2c982b52f34d76e0e | |
parent | dd8d5d6a0be0c1078b6601ec3416ee46c234d37d (diff) | |
download | st-scripts-9b5c5f7e78df35d55737c6ce086fc2bbf51f3139.tar.gz st-scripts-9b5c5f7e78df35d55737c6ce086fc2bbf51f3139.tar.bz2 st-scripts-9b5c5f7e78df35d55737c6ce086fc2bbf51f3139.zip |
input-output review
-rw-r--r-- | input_output/script.rst | 13 |
1 files 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 :: |