I want to prepend the last item of my list BinList with a string less than or equal to. BinList is 10 items long.
I have prepended all the other items in my list with a string less than using this function I wrote: 
def prepend(list, string):
    string += '{0}'
    list = [string.format(i) for i in list]
    return (list)
But I can't use this for a single item in a list.
I tried
lastbin = BinList[10]
string = 'less than or equal to '
FinalCell = string.format(lastbin)
But this just returns less than or equal to
and not the number of BinList[10] as well.
 
     
    