Community Center | Not monitored
Tag not monitored by Microsoft.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have tried every possible way that i know to resolve this, still getting the same response. please i need help!
Here is the code
def system_login(username, password):
allowed_list = ["remi", "joshua", "tayo", "debbie", "ezekiel", "augustine", "michael"]
if username in allowed_list and len(password) >=6:
return "Welcome, you're allowed to access the system"
```else:
```sql
return("This username does not exist in our system") or ("The password you entered is too short")
```Here is the error message:
```ruby
Cell In[1], line 6
return "Welcome, you're allowed to access the system"
^
SyntaxError: 'return' outside function
You had
But you are asking a question about Python? Maybe you are not in the right place? Python is not a Microsoft product.
Anyway, it seems that you have failed to indent the if statement. Recall that indentation is significant in Python!