+ 1

How to call this function?

def good_length(s): s =input(good_length("password:")) if len(s) < 8: print(good_length("2short")) elif len(s) >= 8: print(good_length("nice password")) elif len(s) < 64: print(good_length("2long")) else: print(good_length("toolong, make it short")) return len(s) > 8 and len(s)<64 print(good_length("2short"))

8th Apr 2020, 2:17 PM
boburi 0295
boburi 0295 - avatar
1 Answer
+ 1
I think this function contain an indentation error. return statement hath no proper indentation
9th May 2020, 3:24 AM
Kelvin Paul
Kelvin Paul - avatar