print() function is used to output any value or message to the console or any device. Syntax: print(value(s), sep=' ', end='\n', file=file, flush=flush) Parameters: values: Any values. sep: (optional) Separator. Default:' ' end: (optional) Specifies what to print at the end. Default: '\n' file: (optional)An object with write method. Default: sys.stdout flush: (optional) A bool to specify if the out is flushed (if True) or buffered (if False). Default: False Returns: It returns output to the screen end=" " It specifies what to print at the end of execution of print() statement. Default: "\n" Example: Program1: print("I love to code") print("I'm a programmer", end=". ") print("I'm an expert in python") Output: I love to code I'm a programmer. I'm an expert in python Program2: #print a list values without new line a = [1, 2, 3, 4] for i in range(4): print(a[i], end =" ...