Skip to main content

Posts

Showing posts from February, 2020

Coding Python with SQLite DB

Got a homework assignment on Python is Easy coding class. The homework assignment can be fulfilled using 2 different method, the first one is uploading some code sample, and the other one is to write it in a blog. It turn out that i have started a blog and haven't look at it for a very long time 😞, so this might be the right time to start to write again. But, actually this is not orginally my writing. This is just a rewrite from python3 documentation but with my own code just to help me make sure that i have the correct understanding with the documentation python3 have. Okay, so this time i will try to write some code sample using python to connect and work with SQLite database, i hope this will help me or others that try to learn python. The library used to connect to a SQLite Database called 'sqlite3'. But before that, first let's talk about why we need to connect to a database and specially why using SQLite. When we start to code, sometimes or in