Magic-wielding escapees were desperately deflecting the Imperial attacks on the fortress’ supports as best they could, but Baldric could see it was only a matter of time before they all took a dive, like so many employees before them, into the lake of fire. Of course, HR prisoners usually died by some other means first, […]
Python
Here you'll find posts specifically related to learning the Python programming language, my favorite language of them all. Enjoy!
Intro to Python, Chapter 5 – Loops
Baldric groggily opened his eyes and was greeted by a splitting pain in his head. He had been having the strangest dream, something about a crystal, and a snake eating its own tail, and…a singing head of cabbage? Strange indeed. He looked around in the dim torchlight and found himself in a large cell of […]
Intro to Python, Chapter 4 – Functions
Baldric emerged from the passageway to find himself in an enormous cavern, its ceiling lost in shadow. Great columns of black stone soared from the ground, and pools of lava bubbled throughout, lighting the cavern in a dark red. The heat was suffocating. Baldric saw Bill standing on a stone outcrop nearby, apparently scanning for […]
Intro to Python, Chapter 3 – Conditional Statements
Emerging from the sewer, Baldric found himself in the basin of a dry fountain. In its center was a marble statue of a massive fist which appeared to be composed of many entangled bodies. Employees, by how they were dressed. There were holes in various mouths and eyes that were apparently meant to be channeling […]
Intro to Python, Chapter 2 – Strings and Lists
Something was really bothering Baldric about 106479825301.0, the answer to the mysterious request he’d received. Sitting down at his desk after enduring his meeting with Kevin, he realized what it was. If you only looked at the answer’s whole number portion… …then every number from 0 to 10 appeared exactly once in the larger number’s […]
Intro to Python, Chapter 1 – Arithmetic and Variables
Seated in his cubicle, Baldric tried to block out the buzz of busy clerks scattered about the office. The usual mix of apathy, grumpiness, and existential dread filled his thoughts, but something was tugging at the back of his mind. It felt vaguely like a sense of…hope. Almost as if there was finally a way […]
Intro to Python, Prologue – The Door
His feet carried him through corridor after dark corridor, soft steps echoing in the stillness. He could feel something in these halls calling to him, drawing him near. He turned a corner and there it was, what he somehow knew he would find. A door, seemingly hewn from the surrounding stone. While it bore no […]
Intro to Python, Preface – The Journey Ahead
Data Rebellion presents… Demons & Dwarves: An Intro to Python Adventure Course “ouro7” by Rex Housour, used under CC BY-SA 2.0, cropped original Table of Contents Prologue – The Door Chapter 1 – Arithmetic and Variables Chapter 2 – Strings and Lists Chapter 3 – Conditional Statements Chapter 4 – Functions Chapter 5 – Loops […]
Coding in Interactive Mode vs Script Mode
When programming in Python, you have two basic options for running code: interactive mode and script mode. Distinguishing between these modes can be slightly confusing for beginners, especially when you’re trying to follow along with others’ tutorials, so here’s a brief rundown. Interactive Mode Interactive mode (a.k.a. shell mode) is great for quickly and conveniently […]
April Fools’ Day Python Programming Prank
Do you know someone who Karma’s been slacking on lately? Looking for a harmless April Fools’ Day prank that allows you to flex your Pythonic muscles? Well look no further. Here’s a simple little Python programming prank you can quickly code up, customize for maximum effect, and maybe even learn about a couple useful Python […]