[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 25 KB, 1202x406, What-is-Python.png [View same] [iqdb] [saucenao] [google]
9542300 No.9542300 [Reply] [Original]

I desperately need help. I have found myself in a Comp Sci program but I am pretty retarded at it. We are using Python. The following is the assignment I am working on

> Implement a small library of 3 books using a Python dictionary.
> Implement a Python function to print details about all books in the library.
> Implement a Python function that adds a book to the library.

>Your function should ask for the book ISBN, title, author and how many copies have been purchased. The function should update the library inventory (the dictionary) to include the new book.
>If the book is already in the library the system should update the quantity.
>Implement a Python function that checks out a book for loaning.
>Implement a Python function that searches the library for a book by the book title and returns the book’s ISBN

Please help

>> No.9542305

>>9542300
lol'd

>> No.9542308 [DELETED] 

>>9542305
Thanks ;_;

>> No.9542315

>>9542300
>I have found myself in a Comp Sci program

Retarded niggers belong in the >>>/g/hetto

>> No.9542321

https://docs.python.org/2/tutorial/datastructures.html#dictionaries

>> No.9542332

>>9542321
>https://docs.python.org/2/tutorial/datastructures.html#dictionaries

Thank you kind anon.

>> No.9542347

>>9542300
Please be bait

>> No.9542384

>>9542300
https://pastebin.com/L0dj6fLE

Took all of 5 minutes to write.

>> No.9542389
File: 9 KB, 150x217, SICP_cover.jpg [View same] [iqdb] [saucenao] [google]
9542389

Drop out of college, because this is the only CS book you will ever need.

>> No.9542390
File: 89 KB, 603x324, bjaaarne.jpg [View same] [iqdb] [saucenao] [google]
9542390

>>9542384
>assignment in Python
>does it in a superior language
You sound like a pretty cool guy.