We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9ac666 commit a1681c6Copy full SHA for a1681c6
Course3/Lab4/validations.py
@@ -18,6 +18,7 @@ def validate_user(username, minlen):
18
# Usernames can't begin with a number
19
if username[0].isnumeric():
20
return False
21
+#Fixing the error by checking the first character:
22
if username[0] == '.' or username[0] == '_':
23
24
return True
0 commit comments