Python Forum
brute force - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: brute force (/thread-4822.html)



brute force - skriff - Sep-11-2017

I made this brute force code

it does what i wanted but this code kills my computer if i use 4 characters

i saw this on internet but i dont know how to make it work



RE: brute force - Larz60+ - Sep-11-2017

xrange became range in python 3


RE: brute force - skriff - Sep-11-2017

thans :)


RE: brute force - wavic - Sep-11-2017

wow, 4 for loops in stack :D


RE: brute force - buran - Sep-12-2017

well, the best would be to look at itertools.product

use repeat argument