LLD - Design — Parking Lot System
Find the error in this payment retry logic:
def retry_payment(attempts):
while attempts > 0:
print("Trying payment")
attempts -= 1
print("Failed")
retry_payment(2)