hands-on lab
Python: Simple Guessing Game
Difficulty: Beginner
Duration: Up to 45 minutes
Students: 290
Rating: 3.5/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.
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
, andprint
Target Audience
- Novice Python Developers
Updates
January 23rd, 2024 - Disable Python start page pop-up
April 19th, 2023 - Updated theia to enable autosave
Covered topics
Lab steps
Web IDE Review
Simple Guessing Game