-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathingine.py
40 lines (28 loc) · 878 Bytes
/
ingine.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import datetime
import sys
print("\t\t\t\t\tWelcome to Jawabu Schools\n")
print("Pick your choice\n")
print(f"1.Login(Student)\n"
f"2.Login(Staff)\n"
f"3.Borrow Book\n"
f"4.Return Book\n"
f"5. Exit\n")
ans = int(input("You have picked: "))
match ans:
case 1:
username = input("Your name: ")
password = input("Password: ")
case 2:
staffUser = input("Username: ")
staffPass = input("Password: ")
case 3:
bookTitle = input("Title of the book: ")
bookAuthor = input("Book Author: ")
bookISBN = input("Book ISBN: ")
bookPublication = input("Book Publication year: ")
print("Successfully borrowed!!!")
case 4:
date = datetime.datetime
copies = input("How many copy/ies: ")
case 5:
sys.exit()