Custom Word List | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Custom Word List

How Can I Find All the Possibilities Of A 8 Characters Word Consisting Of Capital Letters,Small Letters And Digits?

11th May 2020, 3:14 PM
Ahmad Tarek
Ahmad Tarek - avatar
5 Answers
+ 3
It's a bit difficult to understand for me, but let me guess: You want use an existing word with an amount of 8 characters (capital letters, small letters and digits) and create new words with all possible combinations of these characters?
11th May 2020, 3:27 PM
Lothar
Lothar - avatar
+ 3
So in this case you have 52 ascii letters plus 10 digits which gives 62 characters. If you wanted to create words of a length of 8 characters but using all of the 62 in any possible combination, you will get 136,325,893,334,400 samples. This will take a long time to create, and also memory consumtion can be a problem or some buffes will have an overflow. In playgrund this will be timed out.
11th May 2020, 4:07 PM
Lothar
Lothar - avatar
0
Lothar No, For Example: from string import ascii_letters, digits a = list(ascii_letters + digits) Now I Want All Possible 8 Characters Combinations Of a Characters.I Tried To Use itertools But It Caused A Memory Error.
11th May 2020, 3:33 PM
Ahmad Tarek
Ahmad Tarek - avatar
0
Dilyorbek Valijonov I Have Already Made A Random Password Generator Like This But This Not What I Want Know.
11th May 2020, 3:34 PM
Ahmad Tarek
Ahmad Tarek - avatar
0
Lothar Thanks,I Heard About Somdthing Called crunch Is It A Module Or What?
11th May 2020, 4:12 PM
Ahmad Tarek
Ahmad Tarek - avatar