10. Password Strength
Assignment
Tip
Solution
package main
import "unicode"
func isValidPassword(password string) bool {
isStrong:= false
if 4<len(password)&& len(password)<=12{
for _, char:= range password{
if unicode.IsUpper(char){
for _, char2:= range password{
if unicode.IsDigit(char2){
isStrong = true
}
}
}
}
}
return isStrong
}