Programming Examples
Python credit card program
Credit Card Program
Solution
amount=int(input("Enter the amount:"))
if(amount<=1000):
print("Your charge is accepted.")
if(amount>1000):
print("The amount exceeds your credit limit.")
Output/ Explanation:
Enter the amount:1000
Your charge is accepted.
Enter the amount:1200
The amount exceeds your credit limit.