• House pass

Question related to mission House Password

 
for x in data:
    x.isupper()         #test if string contains upper case
    x.islower()         #test if string contains lower case
    x.isspace()         #test if string contains spaces
print True or False
return True or False

am I going in the right direction? I really would like a honest opinion. thanks to you all in advance for your thoughts, opinions, and comments.