Thursday, 8 October 2020

                  Basic Elements Of Python

Scripts: 

A python program is sometimes called scripts, is a sequence  of definitions  and commands

shell:

These definition are evaluated and the commands are executed by python interpreter in something is called shell. Generally shell are created when program  execution begins.In this tutorial we will use the shell format because for python learner it is very helpful to use shell format.

 

statements:

A command is often called Statement,give instruction to interpreter to do something special.

 

 

 Example of Statements 

 

The statement print(‘hello world’) instructed the interpreter to call the print function which give the output hello world in string form.

 

 

Sequence of Commands

print ("Yankees rule!")
print ("but in bostan!")
print ("Yankees rule!","but in bostan!")

output  
Yankees rule!
but in bostan!
Yankees rule!,but in bostan!


 

No comments:

Post a Comment

IT

 Definitions