Tkinter Simple Comment App

Tkinter Simple Comment App

In this tutorial, we’ll use Tkinter to build a simple GUI application that gets information from a user, and then outputs the data to the Python console. It is a type of form application and is similar to how you build an Html form to collect information on a website. This version, however, is strictly built as a graphical user interface using Tkinter and Python. This ties together some of the concepts we have been learning about like Tkinter Widgets, Labels, Buttons, and event handling.…

Tkinter Button

tkinter buttons

In Tkinter, labels are used to display information but buttons are designed for the user to interact with. Buttons are a great way for a user to provide input to your program especially now in the age of the internet when everything is just a click away. When a user clicks a button, they expect something to happen. Our job as the programmer is to code in that behavior.…

Python Tkinter Introduction

Python Tkinter Introduction

Tkinter is the well-known framework for Python GUI Development. Tkinter allows developers to build graphical user interfaces in Python that look great, and run on all major operating systems. When you install the latest version of Python, you are also getting Tkinter included by default with that installation. This means it is as easy as adding a few import statements to the top of your code to begin leveraging the power that Tkinter offers.…

Python Statistics Tutorial

Python Statistics Tutorial

Python has a statistics module that makes it simple to calculate common statistics like the mean, mode, standard deviation, and others. Statistics like these can give you interesting information about the data you might be working with. This could be a collection of various grades, a sampling of prices for an item across many retailers, stock prices of various public companies, and many more. Statistics allow individuals and organizations to make decisions based on what the data is providing.…

Commonly Used Python Built In Functions

Commonly Used Python Built In Functions

Python is known for its batteries-included philosophy. You have access to all kinds of very powerful tools by using the rich libraries and modules available. Python also has many built-in functions that do not require you to import them before using them. There are well over 50 included, but we’ll take a look at some of the more commonly used built-in functions in this tutorial. We’ll take a look at python functions such as len(), range(), list(), min(), max(), round(), abs(), pow(), sorted(), split(), type(), and isinstance().…

Logical And Comparison Operators In Python

Logical And Comparison Operators In Python

Logical operators in Python are used for testing conditional statements that are either true or false. It is how we can make decisions about what to do next in the code. Logical operators in Python are and, or and not. The first two look at two operands and make a conclusion. For example, with the and operator, you have a True value if both the operands are true.…

Bubble Sort Merge Sort and Quick Sort in Python

Bubble Sort Merge Sort and Quick Sort in Python

Sorting data is probably the most common tasks you’ll need to do in your programs. As a user of many different online applications, you are sorting data every day. Every single shopping website allows you to sort the data. For example, you can sort by lowest price, highest price, number of customer reviews, average review score, and so on. It doesn’t matter if its Amazon, Target, Barnes n Noble, or the Lego store.…