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
import random | |
symbols = ["#", "$", "&"] | |
# Refactoring code: | |
# Split methods into more methods to refactor code. | |
# Random algorithm method that uses a generator to generate passwords. | |
def random_algorithm(password, length): | |
# Initial counter for attempts. |