Question: I am trying to create a conditional statement that doesn't appear to be working in my Python code. I have tried to read and understand why, and discretely stated there doesn't appear to be a flaw in the booleans. But when I try to place them into a conditional statement, I get syntax errors. Maybe someone can take a look and examine why my code is failing in this instance:

```
userinput = raw_input("Please enter a word: ")

if (len(userinput) > 1 and userinput.isalpha() == True):
    print "Thanks for entering a word."
else:
    print "That was not an acceptable word."

```

Specifically I recieve a syntax error that states:

```
if len(userinput) > 1 and userinput.isalpha() == True):
SyntaxError: invalid syntax                           ^

```

Answer: 
~~Because the input string retains the `\n` character causing the input to fail:~~

~~Consider using `userinput = raw_input("Please enter a word: ").strip()` instead...~~ 

---

Also, `isalpha()` already checks if the length is one or more, reducing your code to:

```
if userinput.isalpha():
    # whatever

```

And then your syntax error goes away quite nicely... (the extra `)` after `userinput)`
The traceback you've pasted shows different code from your original snippet. You have an extra close bracket after `len(userinput)`, which is the cause of the error.