I am trying to write a function in Python that would return a colour value after evaluating to a user value. This what I have tried, however, I am not get what I expect, a single colour. I am getting a list of colours. I am new to programming.
uservalue = 100000
def colour(m,i):
    if uservalue > (m + i):
        clrs == "red"                  
    elif uservalue < (m - i):
        clrs == "blue"              
    else:
        clrs == "white"         
    return clrs
to test I use this input:
colour(20000, 3000)  
output:
['red', 'red', 'red', 'white', 'white', 'white', 'white']
I was looking for one colour returned after evaluation.
 
     
     
    