Wednesday, August 28, 2013

Hello World

Once u have installed the terminal, u can try out your codes!

The prompt in the Idle looks like ">>>"
Next to this is where u start typing.

Now,Lets try out a simple code.
To print "Hello World"

To do this, we use the "print" command.
All you have to do is type 'print "Hello World"' next to the prompt.

Like this,



and then press the Enter key..
and there'll u have it!
"Hello World" will be printed on the Emulator.


So, what did we learn from this?

The command "Print" followed by a string in quotes(" ") prints the string on the Terminal.
Its as easy as this!
Have a try!

No comments:

Post a Comment