hands-on lab

Python: Blackjack Lab

Difficulty: Beginner
Duration: Up to 3 hours
Students: 290
Rating: 4.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.

Description

Build upon your Python skills by creating a console based blackjack game.

Create a single player console based card game. Once built, compete against the dealer to achieve wealth, fame, and glory.

The code used in this lab demonstrates many useful Python language features.

Features such as:

  • Classes
  • Functions
  • Magic methods
  • List comprehensions
  • Collections
  • String formatting
  • Exception handling
  • Doctests

Prerequisites:

  • Familiarity with the Python runtime
  • Familiarity with the Python language syntax
  • Familiarity with callables
  • Familiarity with classes

Target Audience

  • Python Developers

Updates

April 19th, 2023 - Updated theia to include autosave

Covered topics

Lab steps

Web IDE Review
Lab Intro
Supporting Code
Game Logic
Summary