Light Mode
Dark Mode
Bug in Acceptable Password II

In this mission, I tried to solve isacceptablepassword("muchlonger5"). My code returned True in other editor. But somehow when i checked my code, the result returned to False.

PS Here is my answer and it runs well in other editor. It just not work when I check the answer

def isacceptablepassword(password: str) -> bool: if len(password)>=6: for i in password: if i.isdigit(): return True else:return False else:return False

  • bug
  • feedback
Created: July 2, 2021, 7:47 a.m.
Updated: July 2, 2021, 1:11 p.m.
0
9
User avatar
loknayu