Created
July 2, 2020 14:18
-
-
Save Neo23x0/276e45ee1d747c6db672363b69a6b491 to your computer and use it in GitHub Desktop.
Get All Possible Variations of Casings for a String
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
s = "cmd.exe" | |
list(map(''.join, itertools.product(*zip(s.upper(), s.lower())))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment