Additive color mixing begins with black and ends with white; as more color is added, the result is lighter and tends to white. The RGB colors are light primaries and colors are created with light. Percentages of red, green, & blue light are used to generate color on a computer screen.
In shell scripting we often need to check if file or directory exists and take appropriate action. This post show you how to check it and how this check use in your script. For checking we will use file test operators -f for file and -d for directory, which return TRUE if file or directory exists. And here is output of the script.
Hint. To look at the contents of a text file, you can open it in your text editor. Alternatively, if you're using OS X or Linux you can type in a terminal (not a Python interpreter, the plain terminal shell you run Python from), to print the contents out. In the Windows terminal, you can use to do the same thing.hen write a Python program that: 1  Reads all the lines from your text file into a list. 2  Appends something crazy to each line in the list.  Ya mum! is nicely innapropriate, if you're struggling for ideas. 3  Writes all lines in that list into a new file. 4  Check out your handy work by looking in the new file!