Skip to content

Commit 19a1680

Browse files
Add files via upload
1 parent 48c04bf commit 19a1680

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+2926
-0
lines changed

ATMCLASS.py

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
class Atm(): # creating class
2+
# Contructor :-it is a function inside a class
3+
def __init__(self):
4+
self.pin = ""
5+
self.balance = 10000
6+
self.menu()
7+
8+
def menu(self):
9+
user_input = input("""
10+
hi how i help you?
11+
1.press 1 for creating pin
12+
2.press 2 for to change pin
13+
3.press 4 for withdraw
14+
4.press 3 for check balance
15+
5. exist
16+
""")
17+
18+
if user_input == "1":
19+
# create pin
20+
self.create_pin()
21+
22+
elif user_input == "2":
23+
# change pin
24+
self.change_pin()
25+
26+
elif user_input == "4":
27+
# withdraw
28+
self.withdraw()
29+
30+
elif user_input == "3":
31+
self.check_balance()
32+
33+
else:
34+
exit()
35+
36+
def create_pin(self):
37+
setpin = input("Enter your new pin ")
38+
conformpin = input("Confirm your pin Again ")
39+
40+
if setpin == conformpin:
41+
self.pin = conformpin
42+
print("Your ATM pin set successfully")
43+
self.menu()
44+
else:
45+
print('Enter same pin ERROR : .......')
46+
47+
def change_pin(self):
48+
setpin = input("Enter your first pin ")
49+
50+
if setpin == self.pin:
51+
newpin = input("Enter your new pin ")
52+
print("Your new pin set successfully ")
53+
self.pin = newpin
54+
self.menu()
55+
else:
56+
print("pin nahi kar de sakta re babba...")
57+
58+
def check_balance(self):
59+
Checkpin = input("Enter your pin ")
60+
61+
if Checkpin == self.pin:
62+
print("your Balance is : ",self.balance)
63+
self.menu()
64+
else:
65+
print("PIN is incorrect ")
66+
67+
def withdraw(self):
68+
checkpin = input("enter you pin ")
69+
70+
if checkpin == self.pin:
71+
amount = int(input("Enter the Amount "))
72+
if amount < self.balance:
73+
print("Payment is processing ")
74+
self.balance -= amount
75+
print("Withdraw successufully.....")
76+
77+
else:
78+
print("INSUFFICEIENT BALANCE ")
79+
else:
80+
print("PIN IS INCORRECT")
81+
self.menu()
82+
83+
84+
def main():
85+
person1 = Atm() # creating object
86+
if __name__ == "__main__":
87+
main()

Avoid_Screen_lock.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import time
2+
import pyautogui
3+
4+
def main():
5+
while True:
6+
time.sleep(4)
7+
pyautogui.press('volumeup')
8+
pyautogui.press('volumeup')
9+
pyautogui.press('volumeup')
10+
11+
pyautogui.press('volumedown')
12+
pyautogui.press('volumedown')
13+
pyautogui.press('volumedown')
14+
15+
if __name__ == '__main__':
16+
main()

Banking1.py

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Instance variable = name, account, address ,accountNo
2+
# instance method : CreateAccount( ) DisplayAccount()
3+
4+
class BankAccount:
5+
6+
def __init__(self):
7+
self.Name = ""
8+
self.Amount = 0.0
9+
self.Address = ""
10+
self.AccountNo = 0
11+
12+
def CreateAccount(self):
13+
print("Enter your Name : ")
14+
self.Name = input()
15+
16+
print("Enter your intial Amount : ")
17+
self.Amount = float(input())
18+
19+
print("Enter your Addresss : ")
20+
self.Address = input()
21+
22+
print("Enter your Account Number : ")
23+
self.AccountNo = int(input())
24+
25+
def DisplayAccountInfo(self):
26+
print("\n______________your Account Information is below______________\n")
27+
print("Name of Account Holder : ",self.Name)
28+
print("Account Number : ", self.AccountNo)
29+
print("Address of Account Holder : ",self.Address)
30+
print("Current Amount in Account : ",self.Amount)
31+
print("\n__________________Thank You___________________\n")
32+
33+
def main():
34+
35+
Customer1 = BankAccount()
36+
Customer2 = BankAccount()
37+
38+
print("Account no 1 ")
39+
Customer1.CreateAccount()
40+
print("Account no 2")
41+
Customer2.CreateAccount()
42+
43+
Customer1.DisplayAccountInfo()
44+
Customer2.DisplayAccountInfo()
45+
46+
if __name__ == "__main__":
47+
main()

Banking2.py

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Instance variable = name, account, address ,accountNo
2+
# instance method : CreateAccount( ) DisplayAccount()
3+
# class variable = Bank_Name , ROI_On_FD
4+
5+
class BankAccount:
6+
7+
Bank_Name = "HDFC Bank PVT LTD"
8+
ROI_On_FD = 6.7
9+
10+
def __init__(self):
11+
self.Name = ""
12+
self.Amount = 0.0
13+
self.Address = ""
14+
self.AccountNo = 0
15+
16+
def CreateAccount(self):
17+
print("Enter your Name : ")
18+
self.Name = input()
19+
20+
print("Enter your intial Amount : ")
21+
self.Amount = float(input())
22+
23+
print("Enter your Addresss : ")
24+
self.Address = input()
25+
26+
print("Enter your Account Number : ")
27+
self.AccountNo = int(input())
28+
29+
def DisplayAccountInfo(self):
30+
print("\n______________your Account Information is below______________\n")
31+
print("Name of Account Holder : ",self.Name)
32+
print("Account Number : ", self.AccountNo)
33+
print("Address of Account Holder : ",self.Address)
34+
print("Current Amount in Account : ",self.Amount)
35+
print("\n__________________Thank You___________________\n")
36+
37+
def main():
38+
print("Name of Bank : ",BankAccount.Bank_Name)
39+
print("Rate of Intrest on Fixed Desposite : ",BankAccount.ROI_On_FD)
40+
41+
Customer1 = BankAccount()
42+
Customer2 = BankAccount()
43+
44+
print("Account no 1 ")
45+
Customer1.CreateAccount()
46+
print("Account no 2")
47+
Customer2.CreateAccount()
48+
49+
Customer1.DisplayAccountInfo()
50+
Customer2.DisplayAccountInfo()
51+
52+
if __name__ == "__main__":
53+
main()

Banking3.py

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Instance variable = name, account, address ,accountNo
2+
# instance method : CreateAccount( ) DisplayAccount()
3+
# class variable = Bank_Name , ROI_On_FD
4+
# class method : DisplayBankInformation()
5+
6+
class BankAccount:
7+
8+
Bank_Name = "HDFC Bank PVT LTD"
9+
ROI_On_FD = 6.7
10+
11+
def __init__(self):
12+
self.Name = ""
13+
self.Amount = 0.0
14+
self.Address = ""
15+
self.AccountNo = 0
16+
17+
def CreateAccount(self):
18+
print("Enter your Name : ")
19+
self.Name = input()
20+
21+
print("Enter your intial Amount : ")
22+
self.Amount = float(input())
23+
24+
print("Enter your Addresss : ")
25+
self.Address = input()
26+
27+
print("Enter your Account Number : ")
28+
self.AccountNo = int(input())
29+
30+
def DisplayAccountInfo(self):
31+
print("\n______________your Account Information is below______________\n")
32+
print("Name of Account Holder : ",self.Name)
33+
print("Account Number : ", self.AccountNo)
34+
print("Address of Account Holder : ",self.Address)
35+
print("Current Amount in Account : ",self.Amount)
36+
print("\n__________________Thank You___________________\n")
37+
38+
@classmethod
39+
def DisplayBankInformation(cls):
40+
print("\n__________________Welcome to our Banking Console________________\n")
41+
print("Name of our bank is : ",cls.Bank_Name)
42+
print("Rate of intrest we offer on fixed deposit is : ",cls.ROI_On_FD)
43+
print()
44+
45+
def main():
46+
print("Name of Bank : ",BankAccount.Bank_Name)
47+
print("Rate of Intrest on Fixed Desposite : ",BankAccount.ROI_On_FD)
48+
49+
BankAccount.DisplayBankInformation()
50+
51+
Customer1 = BankAccount()
52+
Customer2 = BankAccount()
53+
54+
print("Account no 1 ")
55+
Customer1.CreateAccount()
56+
print("Account no 2")
57+
Customer2.CreateAccount()
58+
59+
Customer1.DisplayAccountInfo()
60+
Customer2.DisplayAccountInfo()
61+
62+
if __name__ == "__main__":
63+
main()

0 commit comments

Comments
 (0)