counting and figuring out the average amount of words in a program

I have a program that should calculate the average amount of characters in a list of strings but it is not working.

#Program that calculates the average length of the items in a list of strings
#Ask the user to input the amount of strings that they want to enter
nofs= eval(input("Please enter the number of strings you want to enter: "))
#Prompt user for a sentence
for i in range(nofs):
sentence= str(input("Please enter a sentence: "))
#Count the number of words
sentencesplitting= sentence.split(" ")
#Count the number of characters
charactercount= len(sentencesplitting)
#Find the average (number of characters divided by the number of words
average = (charactercount)/(sentencesplitting)
#Print the average
print(charactercount)

I am using xlrd to read an excel workbook and to perform some operations on it. But the issue I am facing while reading the data is I am getting blank values where the cell contains else in the non-formula cell I am able to get the value.

for row in range(sheet.nrows):
for col in range(sheet.ncols):
print(sheet.cell_value(row, col))

How can I able to print those cell with formula value too.
I am using Ubuntu, Python 3

I'm trying to pip install "pip install -i https://pypi.anaconda.org/lapu/simple fix-yahoo-finance" but every time I do so, a whole bunch of red text comes out and I don't know what I'm doing wrong. I'm using Windows and Anaconda, I've already installed pip prior to this. Any advice?

I'm looking for some help here. I have to create a Python script which connects to a MS-SQL DB (This is completed and extracting the information I need), and extracts a list of IP addresses from the table and use it to complete the server path to search an specific file on each server and then do modifications on 5 parameters on this file, then jump to next server and do the same changes and so on. Any help in the iteration creation will be more than welcome
At the moment what I have so far is this: