Here is the error:

[![enter image description here](https://i.stack.imgur.com/AaJ7u.png)](https://i.stack.imgur.com/AaJ7u.png)

My code:

```
def isVariable(line):
    modifier = ['private','protected','public']
    datatype = ['String','int','float','boolean']
    status = False
    linelist = list(line.split())

    if(linelist[0] in modifier):
        if(linelist[1] in datatype):
            if(';' in linelist[len(linelist)-1]):
                status = True
                return status
    else:
        return status

f = open('Student.java','r')
vList = []

for line in f:
    status = isVariable(line)
    if status == True:
        vList.append(line)

print(vList)

```

What is wrong?