1 min readOct 1, 2019
Phython
>Python is a general purpose, dynamic, high level, and interpreted programming language.
>It supports Object Oriented programming approach to develop applications. It is simple and easy to learn and provides lots of high-level data structures.
>Python is easy to learn yet powerful and versatile scripting language, which makes it attractive for Application Development.
Python Print():
The full syntax is:
print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)
print() Parameters
- objects — object to the printed. * indicates that there may be more than one object
- sep — objects are separated by sep. Default value:
' '
- end — end is printed at last
- file — must be an object with write(string) method. If omitted it,
sys.stdout
will be used which prints objects on the screen. - flush — If True, the stream is forcibly flushed. Default value: False
Note: sep, end, file and flush are keyword arguments. If you want to use sep argument, you have to use:
Various Type sPrint Output In Python
print("My name is Pramod Ray")#output : My name is Pramod Ray
print("Ram","Gopi","Lav","kush")#output: RamGopiLavKush
print("Ram","Gopi","Lav","kush",sep = ",")
#output : Ram,Gopi,Lav,Kush
print("Ram","Gopi","Lav","kush",end = "-")
#output : Ram-Gopi-Lav-Kush-
print(*[1,2,3,4,5]) output : 1,2,3,4,5print([1,2,3,4]) output : [1,2,3,4]