simple input and output in this sectionwe address the basics of input and output in pythondescribing standard input and output through the user consoleand python' support for reading and writing text files console input and output the print function the built-in functionprintis used to generate standard output to the console in its simplest formit prints an arbitrary sequence of argumentsseparated by spacesand followed by trailing newline character for examplethe command printmaroon outputs the string maroon \ note that arguments need not be string instances nonstring argument will be displayed as str(xwithout any argumentsthe command printoutputs single newline character the print function can be customized through the use of the following keyword parameters (see section for discussion of keyword parameters)by defaultthe print function inserts separating space into the output between each pair of arguments the separator can be customized by providing desired separating string as keyword parametersep for examplecolonseparated output can be produced as print(abcsepthe separating string need not be single characterit can be longer stringand it can be the empty stringsepcausing successive arguments to be directly concatenated by defaulta trailing newline is output after the final argument an alternative trailing string can be designated using keyword parameterend designating the empty string endsuppresses all trailing characters by defaultthe print function sends its output to the standard console howeveroutput can be directed to file by indicating an output file stream (see section using file as keyword parameter the input function the primary means for acquiring information from the user console is built-in function named input this function displays promptif given as an optional parameterand then waits until the user enters some sequence of characters followed by the return key the formal return value of the function is the string of characters that were entered strictly before the return key ( no newline character exists in the returned string