A Pascal's triangle is such an arrangement of numbers in a triangular array in which there is a 1 at the end of each row and the rest of the numbers are the sum of the nearest number in the row above them. This concept is used extensively in probability, algebra and combinators. Pascal's triangle is used to find the result of the toss of a coin.
For Creating a Digital clock, we will use Tkinter Library that is a built-in Package in Python. Tkinter uses for creating GUI elements using the widgets found in the Tk toolkit.