A positive number is called an Armstrong number if it is equal to the sum of the cubes of its...
Category - Python
Python Code Examples
Examples, FAQs (Frequently Asked Questions), notebooks and other little bits of code that we hope...
Python Program to find gcd of two numbers using for loop
Python Code: Program to find gcd of two numbers using loops # take input from the user num1 =...
Tkinter Open New Window on Button Click
In this post, you will learn how to open a window/frame by clicking a button in Tkinter. If you...
Tkinter Passing Variables Between Windows
In this example you will learn how to pass values between frames in Tkinter. We need two pages for...
Change Background Color with Radio Button in Tkinter
In this post you will learn to click the radio button and to change the background color according...
Factorial of a Number in Python Tkinter
In the following code I’ll show you how to calculate the factorial of a number using Python...
Python Tkinter Change Background Color
Following program changes window colors using colorchooser module. User clicks the button that...
Rotate an Array in Python
In this example, you will learn how to rotate an array in Python. Example Code: def rotate(A, n): x...
Find largest element in an array in Python
How to find the largest number in an array in Python 3 Example Code: # Python3 program to find...