In this example we use python to check if two strings are anagrams or not. Example 1 In this example we use the sorted method which sorts the two strings …
Python
-
In this article we show how to count a vowel or consonant in python We will also show you a commonly found piece of code that does this incorrectly, I’ve …
-
In this code example we show how to read a file word by word and display the contents The process is as follows Open a file in read mode which …
-
In this article we show you how to convert a decimal number into binary, octal, and hexadecimal numbers. Here are a brief description of the common systems Decimal System: This …
-
In this article we will show you how to create a program in python to check if a year is a leap year. First of all lets see a definition …
-
This article will look at using the “difflib” module in Python. This module provides classes and functions for comparing sequences. It can be used for example, for comparing files, and …
-
In this article we show how to create radio buttons using Tkinter and python A Radiobutton shows multiple choices to the user out of which, the user can select only …
In this article we look at whether a number is odd or even. There is a fairly simple formula to work this out – If you divide a number by …
In this article we will look at how to check if a number is a prime number using python. This is a fairly common basic programming exercise in many languages. …