Question: i want to add any specific number in any specific position. so when i come up with solution i get index out of range or list out of range(where the list and array in python are growing dynamically).

```
from array import *
a = int(input("how many number you want to inout in an arery"))
ary = array('i',[])
for i in range(a):
    d = int(input("enter number")) # suppose i take [2,5,4,3,8]
    ary.append(d)
pos = int(input("Enter position number")) #i take position is 4
val = int(input("enter value number"))    # and value is 10
c = a-1
while(c >= pos-1):
    ary[c+1] = ary[c]
    c-=1
ary[pos-1]= val
print(ary)

[2,5,4,10,3,8]

```

Answer: 
You are confusing `String.Contains` with `String.IndexOf`. `Compare` returns a `Boolean`, not an `Integer`, and it doesn't support case-insensitivity. `IndexOf` is the one that returns an `Integer` and supports case-insensitivity. Also, it's `StringComparison`, not `StringComparer`. Finally, -1 is the result that indicates no match:

```
found1 = found.ToString().IndexOf(name, StringComparer.OrdinalIgnoreCase) <> -1

```

As a bonus, here's an extension method that will let you call a `Contains` method that still returns a `Boolean` but also supports case-insensitivity:

```
Imports System.Runtime.CompilerServices

Public Module StringExtensions

    <Extension>
    Public Function Contains(source As String, value As String, comparisonType As StringComparison) As Boolean
        Return source.IndexOf(value, comparisonType) <> -1
    End Function

End Module

```

E.g.

```
found1 = found.ToString().Contains(name, StringComparer.OrdinalIgnoreCase)

```
It's not clear what exactly your code does. But the String.Contains method returns Boolean and not Integer. So you probably need to change your call to it:

```
found1 = found.ToString.Contains(name, StringComparer.OrdinalIgnoreCase)

```

And to make your other tests case-insensitive, replace the "=" operator with the String.Equals method. Something like:

```
ListBox1.Items(i).ToString().Equals(name, StringComparer.OrdinalIgnoreCase)

```