Find strings in a list that between specific ascii values – Python

I am trying to find certain string in a list that are between a lowerbound and upperbound (these are user input values). For example say I have a list, states = [‘OH’, ‘NJ’, ‘NY’, ‘SD’, ‘NH’, ‘WI’]. The user inputs lowerbound = ‘NJ’ and upperbound = ‘SD’. I want the code to output [‘OH’, ‘NJ’, ‘NY’, ‘SD’].

Legend format – make bold border, or bigger / different font

Does anyone have a simple way to change the size of the legend to make it larger or make the border bold? a-o are just random ints group_a = (a,b,c,d,e) group_b = (f,g,h,i,j) group_c = (k,l,m,n,o) width = 0.2 x = np.arange(5) plt.bar(x-0.2, group_a, width, color = ‘cyan’) plt.bar(x, group_b, width, color = ‘orange’) plt.bar(x+0.2, … Read more