WriteLine Prior toPython had the write function but not writelines. If you look at many of the programs, including Windows OS utilities, that you use every day; most of them have some type of command-line interface. Writelines does not separate the strings, so the output will be "allenhello world.
There are other ways to get numeric inputs from user. Here's an example. Python includes a comprehensive array of file handling functions to read, write, append, query, transfer and edit files. Listing shows how to obtain interactive input from the user. Consider it added to the next release.
ReadLine ; Console. This is necessary because when a program begins, no object instances exist. One simple approach for converting our input is using the methods of Convert class. WriteLine statement, its value will be placed into the first embedded parameter of the formatted string. You cannot use write to write arrays or Python lists to a file.