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
Ini salah satu kisah tentang Zhu Yuanzhang (1328-1398), pendiri Dinasti Ming yang mengakhiri penjajahan Mongol atas Cina-Kaisar Hongwu. Beberapa tahun setelah dia bertahta (1368), kekaisaran baru yang dipimpinnya mengalami paceklik, dampak dari perang mengusir penjajah. Sang Kaisar prihatin, terlebih saat dia melihat, dalam kesengsaraan rakyatnya itu, beberapa pejabat & menteri masih hidup bermewah-mewah & berfoya-foya. Maka pada suatu hari, Sang Kaisar menyelenggarakan pesta ulang tahun permaisurinya dengan mengundang semua pejabat dan para menteri. Hadir pula para satrawan, sarjana, serta para panglima. Saat masing-masing sudah menghadap meja makan, Sang Kaisar memanggil pelayan. "Sajikan hidangan pertama!", perintahnya. Para dayang pun menghantarkan piring-piring berisi LOBAK REBUS. Semua yang hadir ternganga. "Ah", ujar Kaisar tertawa, "Leluhur mengatakan lobak lebih bagus daripada obat. Ada pepatah 'Lobak masuk ko