Complete the function that takes one argument, a list of words, and returns the length of the longest word in the list.

For example: 

```python
['simple', 'is', 'better', 'than', 'complex'] ==> 7
```

Do not modify the input list.

Difficulty: introductory

Starter code:

def longest(words):
	

Solutions:
def longest(words):
    return max(map(len, words))

def longest(words):
    return max(len(i) for i in words)

def longest(words):
    return len(max(words, key=len))

def longest(words):
    number_of_chars = [len(word) for word in words]
    return max(number_of_chars)

longest = lambda w: len(max(w, key = len))

def longest(words):
    # Your code here
        number = [len(i) for i in words]
        number.sort()
        length = number.pop()
        return length

def longest(words):
    longest=words[0]
    for i in range(len(words)):
        if len(words[i])>len(longest):
            longest = words[i]
    return len(longest)

def longest(words):
    biggest = 0
    for word in words:
        if len(word) > biggest:
            biggest = len(word)
    return biggest 

def longest(words):
    sorted_list = sorted(words, key=len, reverse=True)
    return len(sorted_list[0])

def longest(words):
    lon = len(words[0])
    for i in words:
        if len(i)>lon:
            lon = len(i)
    return lon