From 4adf3b9492d2b9f6c049e302c853049d62583a31 Mon Sep 17 00:00:00 2001 From: cclauss Date: Sat, 6 Jan 2018 07:54:10 +0100 Subject: [PATCH] Pass flake8 tests Without these changes, Python syntax errors are raised. flake8 should be run by this repo's .travis.yml file but it is currently turned off. --- other/password_generator.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/other/password_generator.py b/other/password_generator.py index 858a24da..8916079f 100644 --- a/other/password_generator.py +++ b/other/password_generator.py @@ -13,17 +13,23 @@ max_length = 16 password = ''.join(random.choice(chars) for x in range(random.randint(min_length, max_length))) print('Password: ' + password) print('[ If you are thinking of using this passsword, You better save it. ]') + + # ALTERNATIVE METHODS # ctbi= characters that must be in password # i= how many letters or characters the password length will be def password_generator(ctbi, i): # Password generator = full boot with random_number, random_letters, and random_character FUNCTIONS + pass # Put your code here... + + def random_number(ctbi, i): - - - + pass # Put your code here... + + def random_letters(ctbi, i): - - - + pass # Put your code here... + + def random_characters(ctbi, i): + pass # Put your code here...