Read the whole file as a string

in Python to read contents from a text file CODE.TXT, to count and display the occurrence of those words, which are having 5 or more alphabets. For example : ... Write a python script to plot a bar graph for the given set of values of subject on x-axis and number of student who opted for that subject on y-axis:-X=[‘HINDI’,’ENG’,’MATHS ... ................
................