I have an array and an input, if I input something I want to use .startswith() with my array, for example if I have this:
Array = ['foo','bar']
And if I input "fo" I want it to match it with "foo" and then return the index, in this case 0. How would I do this?
a = ['foo', 'bar']or isfooa variable there...startswith().