Why doesn't this paragraph print out any results ?
users = []
for user in users:
if user == 'admin':
print("He is here.")
else:
print("We need to find some users!")
And how the code is pasted ? Can slide left and right .
Because of you. users It's empty. , The loop will not be executed , You can modify :
users = ['admin', 'root']for user in users: if user == 'admin': print("He is here.") else: print("We need to find some users!")
As for your code , When you were editing , You can see that there is a... On the upper right side of the edit box </> Button , That can define code regions