Operators are special symbols and keywords that help perform an operation or computation on one or more values or variables.
The values or variables that the operator works on are called operands.
Assignment operators are used to assign values to variables.
They evaluate the expression on the right-hand side and store or update the result in the variable on the left-hand side
Imagine you are building a simple digital wallet. The user starts with a certain amount of money, adds money to the wallet, and then spends some money.
Write a Python program that:
Asks the user for their starting balance.
Asks how much money they want to deposit.
Updates the balance after the deposit.
Asks how much they want to spend.
Updates the balance after the expense.
Displays the final remaining balance.
For example:
Enter your starting balance: ₹1000
Enter deposit amount: ₹500
After deposit: ₹1500
Enter expense: ₹350
Final balance: ₹1150