Hey!! if you really wanna learn concepts of python with me get in touch with my blogs on daily basis .I'll cover today numeric basic data types in print function analysis, here we go:
It is a library function that writes 0-N values of any data type to standard output in terminal.
It has by default separater = " " (i.e., space)
and end = "\n" (i.e., next line)The print function always written in small character to print the output from the program.
So , basically it has syntax of :
print (value1, value2, value3, value4,..... sep= "",end "\n").
sep(separator)
- Controls what is placed between multiple values passed to print().
- Default value: a single space " ".
- It must be string and cannot be repeated WHEN we assign value to it.
end (ending character/string)
- Controls what is printed at the end of the line.
- Default value: newline "\n" (moves cursor to next line).
- It must be string and cannot be repeated WHEN we assign value to it.
#python #Day2 #DataScience #bhartiinsan
Top comments (0)