Self-paced

Explore our extensive collection of courses designed to help you master various subjects and skills. Whether you're a beginner or an advanced learner, there's something here for everyone.

Bootcamp

Learn live

Join us for our free workshops, webinars, and other events to learn more about our programs and get started on your journey to becoming a developer.

Upcoming live events

Learning library

For all the self-taught geeks out there, here is our content library with most of the learning materials we have produced throughout the years.

It makes sense to start learning by reading and watching videos about fundamentals and how things work.

Search from all Lessons


LoginGet Started

Register to 4Geeks

← 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 similar projects

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 similar projects

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

How to Code in Python?

Exercise

Learn Python Interactively (beginner)

Exercise

Learn Python Loops and lists Interactively