hands-on lab

Python: Simple Guessing Game

Beginner
45m
203
3.4/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.
Lab description

Build your Python skills by creating a basic console based guessing game.

Combine Python's language fundamentals to build a game that prompts player's to guess a number between 1 and 20.

The code used in this lab demonstrates some of Python's fundamental language features.

Features such as:

  • Importing modules
  • Function definitions
  • Loops
  • Conditionals
  • Operators

Prerequisites:

  • Familiarity with the Python runtime
  • Familiarity with the Python language syntax
  • Familiarity with callables
  • Familiarity with modules
  • Familiarity with built-in callables such as: int, input, and print

Target Audience

  • Novice Python Developers

Updates

January 23rd, 2024 - Disable Python start page pop-up

April 19th, 2023 - Updated theia to enable autosave

About the author
Avatar
Ben Lambert
Software Engineer
Students
109,303
Labs
37
Courses
50
Learning paths
58

Ben Lambert is a software engineer and was previously the lead author for DevOps and Microsoft Azure training content at Cloud Academy. His courses and learning paths covered Cloud Ecosystem technologies such as DC/OS, configuration management tools, and containers. As a software engineer, Ben’s experience includes building highly available web and mobile apps. When he’s not building software, he’s hiking, camping, or creating video games.

Covered topics
Lab steps
Web IDE Review
Simple Guessing Game