LLD - Design — Parking Lot System
Identify the bug in this payment validation code snippet:
def validate_payment(amount):
if amount < 0:
return "Invalid amount"
elif amount == 0:
return "Amount cannot be zero"
else:
return "Valid amount"
print(validate_payment(0))