Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver3
17いいね 289回再生

ATM machin in python | in android|#short |#codeforprogress

other Interesting video link.    • types of function in python| in android |#...…



Welcome to my YouTube channel Codeforprogress

This channel videos contents based on coding, programming language and more

Please like, share and subscribe

----Thank you so much for watching videos-
🙏🙏🙏
👉source code
import time
print("Please insert Your CARD...")
time.sleep(1)
password = 1000
pin = int(input("enter your atm pin: "))
balance = 100000
if pin == password:
while True:

print("""
1.cheack balence
2.withdraw_₹
3.deposit_amount
4.exit
"""
)

try:
option = int(input("Please enter your choice: "))
except:
print("Please enter valid option")
if option == 1:
print("Message")
print(f"Your current balance is {balance}")


if option == 2:

withdraw_amount = int(input("please enter withdraw_amount: "))

balance = balance - withdraw_amount
print("new message..")

print(f"{withdraw_amount} is debited from your account")

print(f"your updated balance is {balance}")


if option == 3:

deposit_amount = int(input("please enter deposit_amount:"))

balance = balance + deposit_amount
print("new message..")

print(f"{deposit_amount} is credited to your account")
print(f"your updated balance is {balance}")
if option == 4:
break
else:
print("wrong pin Please try again..")




music in this video
Music: Wander
Musician: @iksonmusic

#shorts #youtubeshorts #codeforprogress

コメント