Category Archives: Basic syntax

Basic Syntax(2)

SCRIPT MODE PROGRAMMING:
First open IDLE(Python GUI) write a simple Python program in a script. All python files will have extension .py . Save file and press F5 to run the program :-
Let us write simple Python Program:-

print("Welcome to the  Python world !!");

This will produce the following result:-welcome

Basic Syntax (1)

INTERACTIVE MODE PROGRAMMING:
Open Python(command line) without passing a script file brings up the following prompt:

Python 3.4.0b1 (v3.4.0b1:3405dc9a6afa, Nov 24 2013, 19:18:21)
[MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>

Type the following text to the right of the Python prompt and press the Enter key:

print("Welcome to Myprogworld !");

Now this will produce following result :-
Basic one