+ 2

Okay, I wanna write a program in Python, a program like a book list, book's name and reading time, how can ı do that?

22nd Aug 2017, 8:10 PM
Bayan_kod.exe
Bayan_kod.exe - avatar
5 Respuestas
+ 8
Many ways to do that but I recommend thinking of a class Book and instantiating the objects with parameters like Title, Author, Time, Genre, etc. Then it would be good to store it as a database. Sqlite is a very nice way to do that, if you want to easily export its contents to some other SQL-based environment. Or you might try dumping it with the pickle module and store it in a file for later use. This way is the most convenient if you plan only to work on this file with Python and not elsewhere.
22nd Aug 2017, 8:23 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
I was trying with input, but didn't work
22nd Aug 2017, 8:31 PM
Bayan_kod.exe
Bayan_kod.exe - avatar
+ 1
Okay, I learning Exceptions and Files now, should I wait?
23rd Aug 2017, 1:35 PM
Bayan_kod.exe
Bayan_kod.exe - avatar
0
Thank you so much
23rd Aug 2017, 10:26 AM
Bayan_kod.exe
Bayan_kod.exe - avatar