Python Programming Exercises,
Gently Explained
59
hasUppercase = True
if character in NUMBERS:
hasNumber = True
if character in SPECIAL:
hasSpecial = True
assert hasLowercase and hasUppercase and hasNumber and hasSpecial
Try to write a solution based on the information in this description. If you still have trouble
solving
this exercise, read the
Solution Design and Special Cases and Gotchas sections for
additional hints.
Prerequisite concepts: import statements, random module, strings, string concatenation,
len()
, append(), randint(), shuffle(), join()
Dostları ilə paylaş: