Try that (see the new indention)
script_username="test"
script_password="1"
login_username=raw_input('Please Enter the script username:')
login_password=getpass.getpass('Please Enter the script password:')
if login_password == script_password and login_username == script_username:
print " Welcome to the Script "
else:
print " your Username or Password is false "
exit()
name=raw_input("Enter your name: ")
family=raw_input("Enter your family: ")
sex=raw_input("Enter your Sex: ")
print "hello " + sex + name + family
raw_input("press<enter>")
4
solved Python if statements [closed]