google / it-cert-automation-practice

Google IT Automation with Python Professional Certificate - Practice files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update validate_user function

Trev-Burk opened this issue · comments

Expected Behavior

print(validate_user("blue.kale", 3)) # True
print(validate_user(".blue.kale", 3)) # True
print(validate_user("red_quinoa", 4)) # True
print(validate_user("_red_quinoa", 4)) # True

Actual Behavior

print(validate_user("blue.kale", 3)) # True
print(validate_user(".blue.kale", 3)) # False
print(validate_user("red_quinoa", 4)) # True
print(validate_user("_red_quinoa", 4)) # False

Steps to Reproduce the Problem

Specifications

  • Version:
  • Platform: