Start interactive tutorial

← Back to Projects

Random Card Generator CLI

Difficulty

  • easy

Average duration

4 hrs

Technologies

Difficulty

  • easy

Average duration

4 hrs

Instructions
  • Hints

Random Card CLI Python

In this project you will learn how to use coding logic to generate random cards.

Instructions

Create an algorithm that randomly builds a random card every time it runs:

  1. Start by cloning this repo:
$ git clone https://github.com/breatheco-de/exercise-random-card-cli-python`
  1. Run the algorithm by typing:
python3 app.py
  1. Every time the algorithm runs a new random card needs to show on the console.

  2. The card must have one of the possible suites: Hearts, Spades, Clubs and Diamonds.

  3. The card value must be one of the following: 1 to 10, King, Queen, Jack or Ace (no joker).

In the end, the project needs to look similar to this demo.

Hints

  • You can use emoji for the card suites: ♡ ♧ ♤ ♢

Signup and get access to this project for free

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • easy

Average duration

4 hrs

Difficulty

  • easy

Average duration

4 hrs

Difficulty

  • easy

Average duration

4 hrs

Difficulty

  • easy

Average duration

4 hrs

Signup and get access to this project for free

We will use it to give you access to your account.
Already have an account? Login here.

By signing up, you agree to the Terms and conditions and Privacy policy.

Difficulty

  • easy

Average duration

4 hrs

Difficulty

  • easy

Average duration

4 hrs

Supplementary Material

In order to prepare better for completing this exercises, we suggest the following materials

How to

Introduction to Python Programming: A Beginner's Guide?

Exercise

Learn Python Interactively (beginner)

Exercise

Learn Python Loops and lists Interactively