import itertools
s="Fox"
map(''.join, itertools.product(*zip(s.upper(), s.lower())))
>>> ['FOX', 'FOx', 'FoX', 'Fox', 'fOX', 'fOx', 'foX', 'fox']
More Related Contents:
- What does += mean in this context?
- How to convert a string in the desired manner?
- Why does comparing strings using either ‘==’ or ‘is’ sometimes produce a different result?
- Format timedelta to string
- How to search and replace text in a file?
- Convert hex string to int in Python
- Stripping everything but alphanumeric chars from a string in Python
- Convert JSON string to dict using Python
- Print string to text file
- How can I do multiple substitutions using regex?
- How to find char in string and get all the indexes?
- How to match any string from a list of strings in regular expressions in python?
- Extract email sub-strings from large document
- Math operations from string [duplicate]
- How can I remove duplicate words in a string with Python?
- How to get the size of a string in Python?
- How to generate random strings in Python?
- How to convert a string of space- and comma- separated numbers into a list of int? [duplicate]
- Insert some string into given string at given index
- How to convert a string list into an integer in python [duplicate]
- Convert list of strings to dictionary
- How do I check if raw input is integer in python 2.7?
- Sort list of strings by a part of the string
- Is there a way to split a string by every nth separator in Python?
- Python Remove Comma In Dollar Amount
- How to replace whitespaces with underscore?
- Use a string to call function in Python [duplicate]
- Why are str.count(”) and len(str) giving different outputs when used on an empty string?
- What is a “bytestring” (the `bytes` data type) in Python?
- Python- how to verify if a string ends with specific string?