A binary file “Book.dat” has structure [BookNo, Book_Name, Author, Price]
a) Write a user defined function CreateFile() to input data for a record and add to Book.dat file.
b) Write a function CountRec(Author) in Python which accepts the Author name as parameter and count and return number of books written by the given Author are stored in the binary file “Book.dat”
#education #computerscience #tutorial #computers #python #pythonprogramming #pythontutorial #pythonforbeginners #pythonbeginner
Sur cette page du site, vous pouvez voir la vidéo en ligne BINARY FILE QUESTION -1 (FILE HANDLING IN PYTHON) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur proco 15 mars 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 241 fois et il a aimé 8 téléspectateurs. Bon visionnage!