input: Write a python function to validate a password based on given criteria.
  assert password_validation("Password123")==True
  assert password_validation("password")==False
  assert password_validation("PASSWORD123")==False
  assert password_validation("Pass123")==False
  assert password_validation("Passw0rd")==True
output: def password_validation(password):
      if len(password) < 8:
          return False
      has_upper = any(c.isupper() for c in password)
      has_lower = any(c.islower() for c in password)
      has_digit = any(c.isdigit() for c in password)
      return has_upper and has_lower and has_digit