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 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