Python tutorial – While loops basics

In Python, while loops allow you to repeat things forever, or up until a certain point. Here’s an example: keep_going = Truewhile (keep_going == True): print(“Hello world!”) This will print “Hello world!” indefinitely. The keep_going value is set to True, and the while loop checks continuously check that the keep_going value is equal to True.Continue reading “Python tutorial – While loops basics”

Rate This

Python tutorial – How to create basic functions

In Python, a function is a block of code that only runs when it is called later on in the code. Data can be passed into the functions too. One example of a function is print. It runs when it is called in the code, and the text you put inside the bracket is theContinue reading “Python tutorial – How to create basic functions”

Rate This

Python basics #1 – How to get Python to say Hi to you by name

Welcome to Python Basics, my blog series of how to work with Python. In this guide I will be showing you how you can get Python to ask you for your name and then say Hello to you, by name. In this tutorial, you will learn how to: Use Python’s print function. Use Python’s inputContinue reading “Python basics #1 – How to get Python to say Hi to you by name”

Rate This

Python tutorials #1 – basic calculator

This is the first of my Python tutorials! Python is a programming language but unlike C++ and Java, is easier to learn but can still be used to create amazing programs such as web browsers, calculators, word processors, and more. But unlike Scratch, a GUI used to make games and other projects aimed at beginnersContinue reading “Python tutorials #1 – basic calculator”

Rate This

One lovely blog award – who are my favourite bloggers?

This challenge has spread across the internet like fire (I didn’t create this challenge) so I have decided to do one. Basically, I have to tell you 7 things about my character. And up to 15 bloggers I enjoy. I have over 40 followers, but as there are limits (a few don’t have blogs) andContinue reading “One lovely blog award – who are my favourite bloggers?”

Rate This

Python, GTK and WebKit – creating a web browser – Part 3

Hey guys! Welcome to Part 3 of my Python, GTK and WebKit – creating a web browser tutorial. Part 3 will show you how to add an “About” button to the browser. The about dialog will look like: Add the following few lines to the beginning of the code: import Tkinter from ScrolledText import * importContinue reading “Python, GTK and WebKit – creating a web browser – Part 3”

Rate This