equal
deleted
inserted
replaced
36 |
36 |
37 a = "This is a string" |
37 a = "This is a string" |
38 a |
38 a |
39 print a |
39 print a |
40 |
40 |
41 <<<<<<< local |
41 |
42 print a, prints the value of a. |
|
43 ======= |
|
44 ``print a``, obviously, is printing the value of ``a``. |
42 ``print a``, obviously, is printing the value of ``a``. |
45 >>>>>>> other |
43 |
46 As you can see, even when you type just a, the value of a is shown. |
44 As you can see, even when you type just a, the value of a is shown. |
47 But there is a difference. |
45 But there is a difference. |
48 |
46 |
49 .. #[Amit: The next sentence does seem to be clear enough] |
47 .. #[Amit: The next sentence does seem to be clear enough] |
50 |
48 |
65 |
63 |
66 .. #[punch: I think we could show that?] |
64 .. #[punch: I think we could show that?] |
67 |
65 |
68 We shall look at different ways of outputting the data. |
66 We shall look at different ways of outputting the data. |
69 |
67 |
70 <<<<<<< local |
68 |
71 .. #[Amit: C's printf syntax ?? i think its better to elaborate the |
69 .. #[Amit: C's printf syntax ?? i think its better to elaborate the |
72 idea] |
70 idea] |
73 |
71 |
74 print statement in python supports string formatting. |
72 print statement in python supports string formatting. |
75 Various arguments can be passed to print using modifiers. |
73 Various arguments can be passed to print using modifiers. |
76 ======= |
74 |
77 ``print`` statement also accepts the syntax of C's ``printf`` statement. |
|
78 Various arguments can be passed to ``print`` using modifiers. |
|
79 >>>>>>> other |
|
80 type |
75 type |
81 :: |
76 :: |
82 |
77 |
83 x = 1.5 |
78 x = 1.5 |
84 y = 2 |
79 y = 2 |