Created
February 17, 2020 00:07
-
-
Save e96031413/b59fd61cc8adc8b6877798743235ecc7 to your computer and use it in GitHub Desktop.
Create multiple gmail account at one time
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
def dot_trick(username): | |
emails = list() | |
username_length = len(username) | |
combinations = pow(2, username_length - 1) | |
padding = "{0:0" + str(username_length - 1) + "b}" | |
for i in range(0, combinations): | |
bin = padding.format(i) | |
full_email = "" | |
for j in range(0, username_length - 1): | |
full_email += (username[j]); | |
if bin[j] == "1": | |
full_email += "." | |
full_email += (username[j + 1]) | |
emails.append(full_email + "@gmail.com") | |
return emails | |
username = input("Give Username(eg. bipinrai.rai123) = ") | |
print(*dot_trick(username) , sep="\n") | |
ex = input("Done :-), Press ctrl + c to exit") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment