0
Code coach challenge
It failed 3 test cases. Tried to complete it using regex alone but it failed to match the punctuations. #third if statement #if pa.match? /[@#
amp;*!%]/ print "Strong" #doesn't match https://code.sololearn.com/cA654G3rTYnA/?ref=app6 Antworten
+ 2
The qwe45#@ is strong but the result shows week.
Try to find out here on the Playground why, and update it, and then can be that tested in code coach.
+ 2
pa= gets.chomp
if pa.match /[amp;*!%@]+/
if pa.match /[0-9]+/
if pa.length > 6
print "Strong"
else
print "Weak"
end
else
print "Weak"
end
else
print "Weak"
end
+ 1
Ja Play thanks a lot
0
Ja Play I changed it, still failed 3 test cases
0
~ swim ~ could you help with this please.
0
Your welcome!