+ 2
Can I use __name__ for a server in python?
Can I use @classmetod for create a server if the logger is banned he cant enter ps: I use it whit __name__ and a subclass Please is it possible? If I can't do it whit this how I can? https://code.sololearn.com/cYG4oIsAMGbv/?ref=app tanks
1 Resposta
+ 2
@classmethod
def enter in a server(cls)
if __name__=="Banned":
print"you can't enter in this server"
elif __name__=="Admin"
yes_or_not=input("do you wan't to be see from another user?")
if yes_or_not.capitalise=="Yes":
#what do I write here
else:
#reverse of last
I don't know how can I create a funtion its can see or not when the admin enter
I don't add it to the person joined?It don't cause an error when I want to add to it a special ability?
If I write another classmethod it says if the user is an admin I can add to it the ability but if i do this I add the abylity if the user is offline and I don't want to do this
Can I create tho list one is visible by thenormal user and the second not but I must reverse all first list function in the secon'd or I chenge the name but if I change the name a lot of error occurred