# Library Mangement system
# Authors : Ashutosh
# Id Generator
import random
Users = []
availableBooks = []
Users = 0
print("Welcome Sunshine Library")
User_Input = int(input("Enter Your User_Id\nIf Your New Press 1"))
def Id_Generator():
Numbers_For_Password = [1,2,3,4,5,6,7,8,9,0]
User_Id_Digit_1 = random.choice(Numbers_For_Password)
User_Id_Digit_2 = random.choice(Numbers_For_Password)
User_Id_Digit_3 = random.choice(Numbers_For_Password)
User_Id_Digit_4 = random.choice(Numbers_For_Password)
User_Id_Digit_5 = random.choice(Numbers_For_Password)
User_Id_Digit_6 = random.choice(Numbers_For_Password)
User_Id_Digit_7 = random.choice(Numbers_For_Password)
User_Id_Digit_8 = random.choice(Numbers_For_Password)
with open("Register.txt","a+") as f:
Existing_Id = f.readline()
User_Id =f"{User_Id_Digit_1}{User_Id_Digit_2}{User_Id_Digit_3}{User_Id_Digit_4}{User_Id_Digit_5}{User_Id_Digit_6}{User_Id_Digit_7}{User_Id_Digit_8}\n"
f.write(User_Id)
Users.append(User_Id)
print(User_Id)
def AvailableBooks():
Enter_Book = input("Enter Book Name")
availableBooks.append(Enter_Book)
# def Existing_User():# Library Mangement system
# Authors : Ashutosh
# Id Generator
import random
Users = []
availableBooks = []
Users = 0
print("Welcome Sunshine Library")
User_Input = int(input("Enter Your User_Id\nIf Your New Press 1"))
def Id_Generator():
Numbers_For_Password = [1,2,3,4,5,6,7,8,9,0]
User_Id_Digit_1 = random.choice(Numbers_For_Password)
User_Id_Digit_2 = random.choice(Numbers_For_Password)
User_Id_Digit_3 = random.choice(Numbers_For_Password)
User_Id_Digit_4 = random.choice(Numbers_For_Password)
User_Id_Digit_5 = random.choice(Numbers_For_Password)
User_Id_Digit_6 = random.choice(Numbers_For_Password)
User_Id_Digit_7 = random.choice(Numbers_For_Password)
User_Id_Digit_8 = random.choice(Numbers_For_Password)
with open("Register.txt","a+") as f:
Existing_Id = f.readline()
User_Id =f"{User_Id_Digit_1}{User_Id_Digit_2}{User_Id_Digit_3}{User_Id_Digit_4}{User_Id_Digit_5}{User_Id_Digit_6}{User_Id_Digit_7}{User_Id_Digit_8}\n"
f.write(User_Id)
Users.append(User_Id)
print(User_Id)
def AvailableBooks():
Enter_Book = input("Enter Book Name")
availableBooks.append(Enter_Book)
# def Existing_User():# Library Mangement system
# Authors : Ashutosh
# Id Generator
import random
Users = []
availableBooks = []
Users = 0
print("Welcome Sunshine Library")
User_Input = int(input("Enter Your User_Id\nIf Your New Press 1"))
def Id_Generator():
Numbers_For_Password = [1,2,3,4,5,6,7,8,9,0]
User_Id_Digit_1 = random.choice(Numbers_For_Password)
User_Id_Digit_2 = random.choice(Numbers_For_Password)
User_Id_Digit_3 = random.choice(Numbers_For_Password)
User_Id_Digit_4 = random.choice(Numbers_For_Password)
User_Id_Digit_5 = random.choice(Numbers_For_Password)
User_Id_Digit_6 = random.choice(Numbers_For_Password)
User_Id_Digit_7 = random.choice(Numbers_For_Password)
User_Id_Digit_8 = random.choice(Numbers_For_Password)
with open("Register.txt","a+") as f:
Existing_Id = f.readline()
User_Id =f"{User_Id_Digit_1}{User_Id_Digit_2}{User_Id_Digit_3}{User_Id_Digit_4}{User_Id_Digit_5}{User_Id_Digit_6}{User_Id_Digit_7}{User_Id_Digit_8}\n"
f.write(User_Id)
Users.append(User_Id)
print(User_Id)
def AvailableBooks():
Enter_Book = input("Enter Book Name")
availableBooks.append(Enter_Book)
# def Existing_User():
No comments:
Post a Comment