arrays fill the array with random floating-point values for in rangelenvaluelist valuelisti random random(print the valuesone per line for value in valuelist printvalue as second examplesuppose you need to read the contents of text file and count the number of letters occurring in the file with the results printed to the terminal we know that characters are represented by the ascii codewhich consists of integer values the letters of the alphabetboth upperand lowercaseare part of what' known as the printable range of the ascii code this includes the ascii values in the range [ along with some of the codes with smaller values the latter are known control characters and can include the tabnewlineand form-feed codes since all of the letters will have ascii values less than we can create an array of this size and let each element represent counter for the corresponding ascii value after processing the filewe can traverse over the elements used as counters for the letters of the alphabet and ignore the others the following program provides solution to this problem using the array adt#count the number of occurrences of each letter in text file from array import array create an array for the counters and initialize each element to thecounters array thecounters clear open the text file for reading and extract each line from the file and iterate over each character in the line thefile open'atextfile txt''rfor line in thefile for letter in line code ordletter thecounters[code+ close the file thefile close(print the results the uppercase letters have ascii values in the range and the lowercase letters are in the range for in range print"% % % % (chr( + )thecounters[ + ]chr( + )thecounters[ + ]implementing the array python is scripting language built using the languagea high-level language that requires program' source code be compiled into executable code before it can be used the language is very powerful programming language that provides