Hello again everybody, I am sorry that I have not posted in the last couple of weeks. It’s December now, and Christmas time is approaching. In the meantime, here is a new Python tutorial about validation. What is validation? It’s a way of checking whether something is a certain value or not, and executing codeContinue reading “Python tutorials – Basic validation”
Tag Archives: python 3
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”
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”