Back to Browse

Adventures with Python: Learn Python by Programming a Text Adventure Game, Video 4 loops

312 views
Oct 18, 2025
25:32

Welcome to the fourth video in the Adventures with Python series, in which we learn Python (no programming experience required!) by building a text adventure. And it's really heating up now! In the last video, we created a data structure with lists and a little bit of code to create a dungeon that can easily grow. In this video, we're going to enhance the code with a loop that will allow our player to explore the dungeon until they choose quit. As a bonus, we'll create the string describing the available exits from the list of exits. Let's have fun learning to program in Python! This channel is suitable for beginners or experienced programmers who want to learn Python, pygame, Java, R, and general programming concepts. It is also suitable for instructors teaching programming. The series playlist is here: https://www.youtube.com/playlist?list=PLTwy92rWKPiGwvZxnUDf7S0skAXkSxOtr Here is a loops playlist for beginners: https://www.youtube.com/playlist?list=PLTwy92rWKPiF94qVmu_6aNlt60pEHzuX2 If you're interested in an introductory Python book, my book Problem Solving with Python is here: ebook: https://amzn.to/3oiWwOb textbook: https://www.barnesandnoble.com/w/problem-solving-with-python-margaret-stone-burke/1129539414?ean=9798986151311 This is my Objects and Games with Python book, for a thorough introduction to object-oriented game programming with Python and pygame: ebook: https://www.amazon.com/dp/B0B3V93YG9 textbook: https://www.barnesandnoble.com/w/objects-and-games-with-python-margaret-burke/1132868666 The github repository with the code examples from this video series is here: https://github.com/ProfessorBurke/PythonExamples/tree/main/AdventuresWithPython If you want to earn credit for learning to code, take an online course at CCRI! https://ccri.edu/comp/ Attributions: Python logo retrieved from: https://commons.wikimedia.org/wiki/File:Python-logo-notext.svg Attribution: www.python.org, GPL http://www.gnu.org/licenses/gpl.html, via Wikimedia Commons Bricks in thumbnail map edited from https://opengameart.org/content/gb-minimalist-bricks-tileset Eiyeron, or Eiyeron Fulmicendii Arrow in thumbnail map edited from: https://pixabay.com/vectors/lion-arrow-standing-picture-frame-150967/ Texture overlay in thumbnail edited from: https://opengameart.org/content/29-grounds-and-walls-and-water-1024x1024 Adventurer in thumbnail generated by NightCafe and lightly edited in Photoshop. Arrow (curvy) clipart retrieved from: https://www.freepik.com/free-vector/pack-hand-drawn-arrows_2066889.htm#fromView=search&page=1&position=8&uuid=c18ba55b-1912-4e9c-9b43-cbba2d404254&query=Arrow+Clipart In-video image of the sleepy monster generated by NightCafe and lightly edited with Photoshop

Download

0 formats

No download links available.

Adventures with Python: Learn Python by Programming a Text Adventure Game, Video 4 loops | NatokHD