all valid python 3

This commit is contained in:
Alex Brown
2018-10-20 14:45:08 -05:00
parent b566055e4b
commit ea2ddaaf6a
37 changed files with 76 additions and 1436 deletions

View File

@ -37,7 +37,7 @@ def is_balanced(S):
def main():
S = raw_input("Enter sequence of brackets: ")
S = input("Enter sequence of brackets: ")
if is_balanced(S):
print((S, "is balanced"))

View File

@ -19,7 +19,7 @@ def moveDisk(fp,tp):
print(('moving disk from', fp, 'to', tp))
def main():
height = int(raw_input('Height of hanoi: '))
height = int(input('Height of hanoi: '))
moveTower(height, 'A', 'B', 'C')
if __name__ == '__main__':