Posts

Showing posts with the label learning made easy

Print Statement, Escape Sequence and comments in Python Programming.

Image
Print Statements: Print statement is the most important and basic function of python programming. It prints the result on the screen or any out put device. e.g. from the below mentioned print statement/coding "Hello Everyone" is the result which will be printed on output device/screen. Print Syntax print (value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) Prints the values to a stream, or to sys.stdout by default. Optional keyword arguments: file:   a file-like object (stream); defaults to the current sys.stdout. sep:    string inserted between values, default a space. end:    string appended after the last value, default a newline. flush: whether to forcibly flush the stream. Print a single value print ("Hello P-World")   Run Result will be Hello P-World   Printing multi values print ("Hello P-World","This is my first blogpost", "I hope everyone enjoying good health")   ...