Setting a Password
Not sure what to do on line 5 and 6...any suggestions?
You can check the length of a string by doing
len(string), and you can compare lengths by doing
int1 > int2 in your case, this would be
while len(password) < 8 or len(password) > 15:
Please upvote my comment if it was helpful or useful. Thanks!
@nicklee11 You can check if two variables are equal with
==, for example;
if password == password_confirm:. Also, in line 13,
found is set to
False which causes the next if statement to fail and not print anything.
Please upvote my comment and mark it as the answer if it was helpful or useful, thanks!