google / it-cert-automation-practice

Google IT Automation with Python Professional Certificate - Practice files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validations.py improvement and fix

agistarakha opened this issue · comments

Expected Behavior

  • Prints boolean result of validate_user function

Actual Behavior

  • No text output

Steps to Reproduce the Problem

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

Specifications

  • Version:
  • Platform: Windows 10