0% found this document useful (0 votes)
7 views1 page

Python Withdrawal Simulation Script

Uploaded by

mb9z9ptctc
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Python Withdrawal Simulation Script

Uploaded by

mb9z9ptctc
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

   Sign Up Log In 

Python 3 Now Available! Learn More »


     Copy 
Powered by
  [Link] +   
1# fatima abdullah How many withdrawal times?! >>>
2# 11g3 6
3
===.===.===.===.===.===.===.===
4balance = 5000
5print()
6count = input("How many withdrawal times?! >>> ") Enter withdrawal amount >>>
7count = int(count) 2000
8print("===.===.===.===.===.===.===.===")
9print() Withdrawal Successful!
10 Remaining Balance: 3000
11for i in range(1, count + 1, 1): ===.===.===.===.===.===.===.===
12 withdraw_amount = input("Enter withdrawal amount >>> ")
13 withdraw_amount = int(withdraw_amount)
14 Enter withdrawal amount >>>
15 print() 1500
16
17 if withdraw_amount <= balance: Withdrawal Successful!
18 balance = balance - withdraw_amount Remaining Balance: 1500
19 print("Withdrawal Successful!") ===.===.===.===.===.===.===.===
20 print("Remaining Balance:", balance)
21 print("===.===.===.===.===.===.===.===")
22 print()
Enter withdrawal amount >>>
23 else: 2000
24 print("Insufficient Funds.")
25 print("===.===.===.===.===.===.===.===") Insufficient Funds.
26 print() ===.===.===.===.===.===.===.===
27 break
28

 Expand

Want More enter your email address for updates GO


Info?

About Us Support Legal Connect


©2015-2024 Trinket
Our Story FAQ Terms of Service

Blog Help Privacy  


Partnerships Contact Us 

You might also like