# Initialisation de la bibliothèque
bibliotheque = {}
def ajouter_livre(bibliotheque, identifiant, titre, auteur, annee, copies):
bibliotheque[identifiant] = {
'titre': titre,
'auteur': auteur,
'annee': annee,
'copies_disponibles': copies
}
def emprunter_livre(bibliotheque, identifiant):
if identifiant in bibliotheque and bibliotheque[identifiant]['copies_disponibles'] > 0:
bibliotheque[identifiant]['copies_disponibles'] -= 1
print(f"Livre emprunté: {bibliotheque[identifiant]['titre']}")
else:
print("Livre non disponible pour l'emprunt.")