Exercise 6 Solution - Library Management Software in Python | Python Tutorial - Day #67

preview_player
Показать описание

python, C, C++, Java, JavaScript and Other Cheetsheets [++]:

►Learn in One Video[++]:

►Complete course [playlist]:

Follow Me On Social Media
Comment "#HarryBhai" if you read this 😉😉
Рекомендации по теме
Комментарии
Автор

Thank's a lot bhai for the Shout Out. Poore 4-5 saal baad shout out mila hai. Watching you since android studio course.

pulkitpareek
Автор

will come to this Day 67 tutorial soon cuz im on day 9 right now, pls keep making good content like this

Sunny-tmok
Автор

class Solution {
public:
vector<int> twoSum(vector<int> &nums, int target) {
for (int i = 0; i < nums.size(); i++) {
for (int j = i + 1; j < nums.size(); j++) {
if (nums[j] ==

RajaAbdullahkhan-qp
Автор

Harry bhai, after this python course, please make a course on MERN stack with 2-3 projects. Love your work ❤❤

gyaneshwarsah
Автор

Harry bhai Python sikhane ke baad ML zaroor sikhana

azeemotho
Автор

Harry bhai itni bara maine apko solution diya lakin apne mera solution nahi dekha :/ :( chalo koi bata nahi. You are best love you harry bhai 💕🔥👍🏻❤️

programmerlovers
Автор

I'm learning web development from your play list. But i have a confusion, should i continue from your playlist?
Or should i continue with chat GPT?

masumreza
Автор

Sir I am Your New Student from Peshawar Pakistan

waqasmohmand
Автор

Harry vai plz app complete Machine learning ke upar playlist banao.. humlogo ka onek shubidha hoga

arupsankarroy
Автор

Best of luck to all developers ❣️❣️❣️👍

Jai_shree_Ram-rv
Автор

class library:
no_of_book=0
book_list=[]
def manage(self):
a=input("hey user to insert a book type 'yes'")
while(a=='yes'):
insert=input("name a book which you want to insert")


a=input("type 'yes' to insert again and to see books type 'see'")
if a=='see':
print(f"hey user the library have {self.no_of_book} books and books are ")
for i in self.book_list:
print(i, f"\n")
else:
print("invalid input")

obj=library()
obj.manage()

vaibhavsoni
Автор

#LIBRARY CLASS
def count_books (no_of_books):
count=0
for _ in no_of_books:
count +=1
return count

books= ["The Shining", "The picture of Dorian Gray"]
print(f"You have these books in your libarary: {books}", end="\n")
while True:
ui=input("Book you'd like to add (or enter stop): " )
if ui.lower()== "stop":
break
books.append(ui)

a=(count_books(books))
b=(tuple(books))
print(f"You have {a} books")
print(f"You have {a} books, namely: {b}")

rayaanshahkhan
Автор

Please make an updated video on React Router Dom. As the library has been updated and it changed to a different approach.

Axelblaze
Автор

#Day67 Present Sir <3 continuous streak🔥🔥

shivamchaudhary
Автор

Kya mobile se coding kar sakte hai
Jaise web site banana, app banana
I have only mobile.
REPLY OR MAKE A VIDEO ON IT

AZ_SciTec
Автор

With a heart of gold and a smile so bright,
Harry Bhai shines day and night.
A friend to all, a mentor so true,
His kindness and wisdom shines through.

Through challenges big and small,
He stands tall, giving his all.
Inspiring us to be the best we can be,
Harry Bhai, a true leader and friend, we see.

So here's a toast to Harry Bhai,
May he always be blessed, happy and bright.
A shining star in a world of strife,
Bringing joy, love and peace to life.

VineetKumar-rjth
Автор

Hey.... here's my solution....i think you'll find damn

Class library
def __init__(self):
self.noofbooks = 0
self.books = []

def addbook(self, book):
self.books.append
(book)
self.noofbooks += 1

def all_books(self):
if (self.noofbooks == len(self.books))
print(f"The library has{self.books} in a library)
else:
Print("opps you got an error)
def show_allbooks(self):
print(f"Total no. Of books {self.noofbooks})

l1 = library ()
L1.addbook("Harry Potter ")
Print(l1.allbooks())
Print(l1.show_allbooks())



Now this will be more easier i

aksharasharma
Автор

class Library:
def __init__(self):
self.no_of_books: 0
self.books = []


def addbook(self, n):
print(f"Enter the no. of book you want to enter {n}")
for _ in range(n):
a = input()
self.books.append(a)
print(f"books added : - {self.books}")




def showbook(self, ):
print(f"No of books present : - {len(self.books)}")
for i in self.books:
print(i)


a = Library()
a.addbook(4)
a.showbook()

adarshrawat
Автор

class Library:

noofBooks = 0
def __init__(self, name):
self.name=name
Library.noofBooks +=1
def showdetails(self):
print(f"The name of the Book is {self.name} and the No. is {self.noofBooks}")

number_list=[]
n=int(input("Enter the books no.\n"))
print("\n")
for noofBooks in range(1, n+1):
book1= input("Please Enter Your book name:\n")
books= Library(book1)
print("\n")
books.showdetails()
print("\n")
number_list.append(book1)
print("Books in library ", number_list)

sarojkanvadiya
Автор

#HarryBhai, when are you going to teach us walrus operator which you told about in the announcement video of this course??

codyandersan