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 …
Python
-
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 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 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 …
-
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. …
-
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 …
-
The Spinbox widget is used to select from a fixed number of values. It is an alternative Entry widget and provides the range of values to the user, the values …
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 …
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 example we show how to draw contour using matplotlib in python Contour plots which are also called level plots are a way to show a three-dimensional surface on …