Q. Differentiate between displaying and printing method in Python.


Answer :-

Displaying method :-
1. Display method tells data type of the variable.
2. It can used only in python shell mode.
3. it returns output line by line.

Example :-

>>> a = "Path Walla"
>>> a
'Path Walla'

Printing method :-
1. Print do not tells data type of the variable.
2. It can be used in both types of modes (Interactive mode and Script mode)
3. it do not returns output line by line.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post