Comments serve a few purposes such as explaining what a particular piece of code does, it can also make your code more readable and make it easier for other programmers.
In this code example we will create a simple clock. There will be a console based example and a simple gui version as well. We will use the datetime module.
Its handy to have a collection of useful little snippets when you are using any programming language. This is ours for python– work in progress as we various of them.
Reserved Words The following shows the Python keywords. These are reserved and you cannot use them as constant or variable or any other identifier names. and exec not assert finally.
In this article we look at more functions and methods associated with lists, this is a follow on from our first part – Python Lists : the basics Length, maximum.
The List is an extremely versatile datatype which is available in Python and can be written as a list of comma-separated values between square brackets. Lets look at some important.

- Create a digital clock using PyQt5
- Create a Countdown Timer using Tkinter
- Detecting USB devices being added or removed using Python
- Download YouTube Videos in Python With PyTube
- Get the installed applications on your PC using python
- Display a random fact using a python module
- Pandas Write a DataFrame to a CSV file