From baa927f6e99aec48054a3f10ae36da801abd7fb0 Mon Sep 17 00:00:00 2001 From: dwiratomo122 Date: Thu, 25 Feb 2021 16:41:23 +0000 Subject: [PATCH] rubah sebagian code --- Course3/Lab4/validations.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Course3/Lab4/validations.py b/Course3/Lab4/validations.py index b18de65a2e..511bf546e1 100644 --- a/Course3/Lab4/validations.py +++ b/Course3/Lab4/validations.py @@ -20,5 +20,7 @@ def validate_user(username, minlen): return False return True - - +print(validate_user("blue.kale", 3)) # True +print(validate_user("1blue.kale", 3)) # Currently True, should be False +print(validate_user("red_quinoa", 4)) # True +print(validate_user("1red_quinoa", 4)) # Currently True, should be False