Add return keyword to recursive call

This commit is contained in:
lolabird 2024-02-29 14:41:20 -07:00
commit d8e1649288

View file

@ -26,7 +26,7 @@ def cross(rounds, bank1, boat, bank2):
print(rounds, bank1, boat, bank2) print(rounds, bank1, boat, bank2)
rounds += 1 rounds += 1
cross(rounds, bank1, boat, bank2) return cross(rounds, bank1, boat, bank2)
def main(): def main():