Feb-11-2020, 05:57 PM
(Feb-07-2020, 04:25 PM)Hob_78 Wrote: I figured it
x = 1 while x <= 3: name = input("Enter your username: ") if len(name) < 5: print(f"{name} is too short") elif len(name) > 9: print (f"{name} is too long") else: print(f"Welcome {name} !") break x += 1 else: print("too many tries !")if i give a name which is having length of 7, it is printing welcome msg why ???