[ create a new paste ] login | about

Link: http://codepad.org/HtUiQytM    [ raw code | output | fork ]

Python, pasted on Jul 22:
1
2
3
4
5
6
7
banned_users =["marie", "jane", "chris"]
user = "marie"

if user not in banned_users:
 print(user.title() + ", you can post your message.")
else:
 print(user.title() + ", you are banned and therefore can't post a message.")


Output:
1
Marie, you are banned and therefore can't post a message.


Create a new paste based on this one


Comments: