<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Muhammad Faraz Faraz</title>
    <description>The latest articles on DEV Community by Muhammad Faraz Faraz (@muhammad_farazfaraz_aae0).</description>
    <link>https://dev.to/muhammad_farazfaraz_aae0</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2464033%2Fd0fddd29-74b3-4b64-9c23-236c31559c9b.png</url>
      <title>DEV Community: Muhammad Faraz Faraz</title>
      <link>https://dev.to/muhammad_farazfaraz_aae0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/muhammad_farazfaraz_aae0"/>
    <language>en</language>
    <item>
      <title>Construisez une application de streaming d’anime : Un guide inspiré par Anime Sama APK</title>
      <dc:creator>Muhammad Faraz Faraz</dc:creator>
      <pubDate>Thu, 21 Nov 2024 12:33:16 +0000</pubDate>
      <link>https://dev.to/muhammad_farazfaraz_aae0/construisez-une-application-de-streaming-danime-un-guide-inspire-par-anime-sama-apk-36cl</link>
      <guid>https://dev.to/muhammad_farazfaraz_aae0/construisez-une-application-de-streaming-danime-un-guide-inspire-par-anime-sama-apk-36cl</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Gestionnaire de bibliothèque d'anime

# Étape 1 : Définir un dictionnaire pour stocker les détails des animes
bibliotheque_anime = {}

# Étape 2 : Fonction pour ajouter un anime
def ajouter_anime(titre, genre, note):
    if titre in bibliotheque_anime:
        print(f"'{titre}' existe déjà dans la bibliothèque !")
    else:
        bibliotheque_anime[titre] = {"Genre": genre, "Note": note}
        print(f"'{titre}' ajouté avec succès !")

# Étape 3 : Fonction pour afficher tous les animes
def afficher_animes():
    if bibliotheque_anime:
        print("\nBibliothèque d'animes :")
        for titre, details in bibliotheque_anime.items():
            print(f"- {titre} : Genre - {details['Genre']}, Note - {details['Note']}")
    else:
        print("\nLa bibliothèque est vide !")

# Étape 4 : Fonction pour rechercher un anime
def rechercher_anime(titre):
    if titre in bibliotheque_anime:
        print(f"\n'{titre}' trouvé : {bibliotheque_anime[titre]}")
    else:
        print(f"\n'{titre}' non trouvé dans la bibliothèque !")

# Étape 5 : Menu pour l'interaction utilisateur
while True:
    print("\n=== Gestionnaire de bibliothèque d'anime ===")
    print("1. Ajouter un anime")
    print("2. Afficher les animes")
    print("3. Rechercher un anime")
    print("4. Quitter")
    choix = input("Entrez votre choix : ")

    if choix == "1":
        titre_anime = input("Entrez le titre de l'anime : ")
        genre_anime = input("Entrez le genre de l'anime : ")
        note_anime = input("Entrez la note de l'anime (sur 10) : ")
        ajouter_anime(titre_anime, genre_anime, note_anime)
    elif choix == "2":
        afficher_animes()
    elif choix == "3":
        titre_recherche = input("Entrez le titre à rechercher : ")
        rechercher_anime(titre_recherche)
    elif choix == "4":
        print("Fermeture du gestionnaire de bibliothèque d'anime. Au revoir !")
        break
    else:
        print("Choix invalide. Veuillez réessayer !")

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Vous êtes fan d’anime et vous souhaitez apprendre comment les applications comme &lt;a href="https://animesamaapk.fr/" rel="noopener noreferrer"&gt;Anime Sama APK&lt;/a&gt; sont conçues ? Découvrons un défi de codage simple pour créer une bibliothèque d’animes en Python.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
