# Validate all conditions
for eachChar in password:
if eachChar in "ABCDEFGHIJKLMNOPQRSTUVWXYZ":
upp = True
elif eachChar in "abcdefghijklmnopqrstuvwxyz":
low = True
elif eachChar in "0123456789":
num = True
elif eachChar in "!@#$%^&*()_-=+/\';><,.>":
spc = True
else:
continue
if len("password") >= 8:
cnt = True
if upp and low and num and spc and cnt:
return True
else:
return False