<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.>
< So i am working on this code for class and for some reason i cant get the if statement to return true. Those parameters are, must be exactly 6 digits, The first and last digits must be numbers. The premise of this is that i am making a password encryptor so the last part is just that(python). .>
<What do you expect to happen instead?>
```python“”“This is a code that is supposed to make sure user enters a valid “password” (six digits, the first and last digits have to be numbers) after the the code has to output an the password but encoded”""
password = raw_input (“Enter your password”)
str = password
if (password) == 6 and (password[0]).isdigit and (password[5]).isdigit and not (password[1-4]).isdigit:
str = password;
print str.replace (“1”,")").replace (“2”,"(").replace (“3”,"*").replace (“4”,"&").replace (“5”,"^").replace (“6”,"%").replace (“7”,"$").replace (“8”,"#").replace (“0”,"!").replace (“9”,"@")
else:
print “You did not a password that meets requirements”
<do not remove the three backticks above>