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

Enter the amount:1000

Your charge is accepted.


Enter the amount:1200

The amount exceeds your credit limit.

Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad