From f471c8ff4e902437234bee40625416ff39deeaaa Mon Sep 17 00:00:00 2001 From: Santhosh09062006 Date: Thu, 31 Jul 2025 09:34:29 +0530 Subject: [PATCH] Fix: deposit method condition to check for positive amount --- FunProjects/AtmMachineSimulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FunProjects/AtmMachineSimulator.py b/FunProjects/AtmMachineSimulator.py index fb86dde..773e108 100644 --- a/FunProjects/AtmMachineSimulator.py +++ b/FunProjects/AtmMachineSimulator.py @@ -4,7 +4,7 @@ def __init__(self, balance): self.balance = balance def deposit(self, amount): - if amount >= 0: + if amount <= 0: print("Amount must be positive.") else: self.balance += amount