Question: I am trying to find an element in a list (string) and then print the index. Here is my code:

```
def checkLen():
days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
position = 0
for i in days:
    if i == "Monday":
        position = i
        print("Found it")
        print(position)

```

But i am getting the result:

```
Found it
Monday

```

I have discovered that ,unlike other programming language that i know, Python variable type can change, which is why the Number type "position" changes to a "str", how do i save the index in position?

Answer: 
Use [enumerate](https://docs.python.org/2/library/functions.html#enumerate). It returns both the position and the item:

```
def checkLen():
    days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
    for position, day in enumerate(days):
        if day == "Monday":
            print("Found it")
            print(position)

```
```
 def checkLen():
    days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
    if "Monday" in days:
        print "found"
        print days.index("Monday")

```

you dont need to loop the days . just use `in` if it is found then `index`