python

Java
Python

[Python core] – Collections framework in Python for Java learners

Many people are amazed by the fact that Python is way too simple than other languages. If you have already had knowledge of another language, I would be even easier than eating a piece of cake. In this post, I’ll discuss Collections Framework in Python for those who have already had a basic Java basement. […]

Read More
Fun Fun Fun
Python

[Python fun] – How many days have you lived on Earth?

Sometimes, you may encounter some fun application on Facebook such as: ‘How many days have you lived on Earth?’ or ‘Guess how long you will live’. Well, that’s nothing magical. I’ll show you how to do that in Python with datetime library. To get the current time, we use: [in 1]: import datetime [in 2]: […]

Read More
Python

[Python Core] – Method Resolution Order (MRO) in Python OOP

Unlike Java which only has single inheritance, Python has multiple-inheritance. So the issue is how you would know the order of inheritance. The answer is simple (hopefully this post today is super short as well). Let’s make some code: class Parent: def do_something(self): print(“METHOD IN CLASS Parent”) class Child_A(Parent): def do_something(self): print(“METHOD IN CLASS Child_A”) […]

Read More
Django
Python

[Django Series] – Django Project Structure

I’m pretty sure that once you understand the mission of every single thing in a Django project, you’ll feel much better to roll up your sleeves and start coding. If you’re still not confident in creating a new Django project, have a look at my previous post at here. After creating a project, you’ll have […]

Read More
Django
Python

[Django Series] – Setting up working environment for a Django Project

Python is easy to learn but difficult to master. Saying so, I mean the introductory course for this language, as well as its framework should be utmost simple. In this series, I will write about the process of building up a Django website in the most cut and dry words that you could be more […]

Read More