committed by
Aditya Bhargava
parent
f9497eb344
commit
2f939182ae
@@ -1,10 +1,10 @@
|
||||
voted = {}
|
||||
def check_voter(name):
|
||||
if voted.get(name):
|
||||
print "kick them out!"
|
||||
print("kick them out!")
|
||||
else:
|
||||
voted[name] = True
|
||||
print "let them vote!"
|
||||
print("let them vote!")
|
||||
|
||||
check_voter("tom")
|
||||
check_voter("mike")
|
||||
|
||||
Reference in New Issue
Block a user