# Monthly Archives: March 2020

## Python Program to Print A to Z using for Loop

Topic: Python Program to Print A to Z using for Loop We will use the built-in Python function chr() to print the A to Z alphabet characters. We know that the Ascii code of ‘A’ is 65 and that of ‘Z’ is 90. Therefore we will use a range() function in a for loop with… Read More »

## chr() function and ord() function in Python

Topic: chr() function and ord() function in Python What is the Use of chr() function and ord() function in Python chr() function in Python The chr() function in Python takes an integer Ascii code and returns the character (actually a string of one character)at that Ascii code value. For example , chr(65) will return ‘A’… Read More »

## Print ABA Alphabet Pyramid Python Program

Topic: Print ABA Alphabet Pyramid Python Program Pattern No. 12 The Source Code of Print ABA Alphabet Pyramid # Python 3 program # to print Alphabet Pattern-12 # as shown below ”’ A ABA ABCBA ABCDCBA ABCDEDCBA ”’ # Ascii code of A=65,E=69,F=70 # Print certain number of spaces before alphabets rows=5 ch = ‘A’… Read More »

## Python Print Alphabet Patterns 11 Programs

Topic: Python Print Alphabet Patterns Programs Alphabets patterns and shapes printing programs for Python Novice Programmers Alphabets patterns and shapes printing programs use nested for loops normally. Print alphabets Pattern programs are very importnat for program logic building in novice Python programmers. These programs improves thinking power of the beginner programmers to solve a given… Read More »

## Python Pounds to Kilogram Converter GUI tkinter Program

Topic: Python 3 Pounds to Kilogram Converter GUI tkinter Program How to Convert Pounds to Kilograms We use pounds (lbs) and kilograms (kg) as units to  measure weight or mass. Both are used in different parts of the world as a weight or mass unit. Therefore, often we need to covert the Pounds to Kilograms… Read More »

## Python 3 Four Function Calculator Program tkinter GUI

Topic: Python 3 Four Function Calculator Program tkinter GUI Widgets used in Simple 4 Function Calculator We have used here: Label widgets to display labels for entry widgets for example. We use a label widget for showing result of addition, subtraction, multiplication or division. Last label simply displays ‘www.EasycodeBook.com for Python GUI Tutorials’. Two Entry… Read More »

## Python Digital Clock Program using tkinter GUI

Topic: Python Digital Clock Program using tkinter GUI Hardly 10 Lines of code using a label control and after() method to call a function after given miliseconds. This program imports time module We use time module and tkinter. Program Logic / Widgets used in Digital clock Program Label widget: create a label widget named clock… Read More »

## Python Quotes Changer Program tkinter GUI

Topic: Python Quotes Changer Program tkinter GUI The Widgets Used in Quotes Changing Program This program uses mainly two widgets: Message widget – to display quotes Spinbox widget – to provide 1 to 5 values to display quote number 1 to 5. when the user selects a new number value from Spinbox widget, the quote… Read More »

## Python Spinbox Change Fontsize GUI Program

Topic: Python Spinbox Change Fontsize – Chnage Font Size Spinbox GUI Program Example This Python GUI program using tkinter GUI package, shows the use of Spinbox widget. As the proggram is in execution state, its GUI main window will wait for user input. If the user will change the spinbox value by increasing or decreasing,… Read More »

## Python 3 tkinter Message Widget Program Examples

Topic: Python 3 tkinter Message Widget Program Examples What is a Message Widget The Message widget is specially designed to show multiline non-editable messages. The message widget will adjust its width. It can wrap text too. It uses a single font to display a multiline message. Why and When to use the Message Widget We… Read More »