Hi guys!, i have a problem to convert Python code to AutoIt code, in fact i had not coded with Python yet!, this code is about permutation a string's case, i will be happy with your comments :)❤; Python code:
# Python code to print all permutations
# with respect to cases
# Function to generate permutations
n = len(inp)
# Number of permutations is 2^n
mx = 1 << n
# Converting string to lower case
Give this a spin:
Const $ALPHA_STRING = "aBc"
Local $aChars = StringSplit($ALPHA_STRING, "")
Local $iNbrOfChars = $aChars
Local $sString = ""
For $i = 0 To (2 ^ $iNbrOfChars) - 1 ;Loop thru iterations (base2 000, 001, 010, ... 111)
$sString = "" ; Initialize string
For $j = 0 To $iNbrOfChars - 1 ; Loop thru chars