Resolve Issue #40: Changed more examples to use python3 syntax (#56)

This commit is contained in:
Ramit Mittal
2018-03-19 22:18:21 +05:30
committed by Aditya Bhargava
parent f9497eb344
commit 2f939182ae
4 changed files with 8 additions and 8 deletions

View File

@@ -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")