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
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”
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”
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?”
Where Python 3.6 is stored on Windows
If you are wondering where Python 3.6 is stored, then here is the path: C:\Users\YOURUSERNAME\AppData\Local\Programs\Python
Python, GTK and WebKit – creating a web browser – Part 2
IF YOU HAVE NOT YET, PLEASE READ PART 1 BEFORE CONTINUING! In Part 1, I showed you how to create a very basic web browser in Python with WebKit and GTK. It is a great example of Python’s power, but there was no refresh button. Part 2 focuses on adding this feature so you can refreshContinue reading “Python, GTK and WebKit – creating a web browser – Part 2”
Python: Input
Use raw_input for this. Here is an example: print(“Raw_Input example, by Epic Chas Gamer”) name = raw_input(“What is your name? “) print(“Hello, “,name) If you get errors plz comment 🙂
A new web browser
Python lets you do lots of things, from Calculator programs to Video Games. But there is one capability that you probably don’t know you can do with Python: make a simple web browser. ECG SeaSurf So, no set release date yet, as I am still working on it. But when I have finished developingContinue reading “A new web browser”
Unofficial Raspberry Pi Clock Application
Hi guys. Today I have been experimenting with Python and Pygame. I managed to make a clock application for the Raspberry Pi. Here is the code: import pygame, sys, time pygame.init() screen = pygame.display.set_mode((1184, 624), pygame.FULLSCREEN) pygame.display.set_caption(“Raspberry Pi Clock”) clockFont = pygame.font.Font(None, 72) clock = pygame.time.Clock() ##COLOURS WHITE = (255, 255, 255) RED = (255,Continue reading “Unofficial Raspberry Pi Clock Application”