Question: Write a while loop that starts with balance = 1000 and deducts 200 each iteration until balance is zero or negative. Print the balance in each step.
Python Code:
# Initialize balance
balance = 1000
# While loop to deduct 200 each time
while balance >= 0:
print("Balance:", balance)
balance = balance-200 # Deduct 200