Python; Print Command- PART 3

 by 

     Aneesh R. Prabhu


   The most common instruction given to a computer in any programming language is output some data either to user or console etc.

Output

Any type of of information we get from the computer is called output and y'll know it. This response you will get from a computer. An instruction is a unit of work for a computer.

Values

A value is a unit or a multiple units of information, like numbers, strings , character, character of numbers or etc.

Print function

If we need the computer to show any out, we use print function. Correct way of using Print function 
is by typing print(arguments). We need to pass a argument that computer should display.

Arguments

When a value is used in a function call, it is called an argument. Arguments are enclosed in parentheses after the function name.

i.e <function_name>(<argument>)
i.e
print("hello world")

In the above statement print is the function name and "hello world" is the argument. There can be function with one arguments or with multiple argument. 
*more details in future sessions.

As shown above, it tells the computer to perform the print function with the value "hello world". Every computer performs the print function by displaying the given value as output.

Feel free to comment down your queries.

Thank You!

Comments

Popular posts from this blog

Python; Introduction and Installation -PART 1

A second home: Mars