You are viewing a single comment's thread. Return to all comments →
if __name__ == '__main__': s = input() a, b, c, d, e = False, False, False, False, False for i in s: if a == False: a = i.isalnum() if b == False: b = i.isalpha() if c == False: c = i.isdigit() if d == False: d = i.islower() if e == False: e = i.isupper() print(a,b,c,d,e, sep = '\n')
String Validators
You are viewing a single comment's thread. Return to all comments →