4Geeks logo
4Geeks logo

Courses

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.

Coding 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.

Data Science and Machine Learning - 16 wks

Full-Stack Software Developer - 16w

Search from all Lessons

LoginGet Started
← Back to Projects

Random Card Generator CLI

Goal

4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills

Video tutorial

Difficulty

unknown

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

4 hrs

Technologies

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: ♡ ♧ ♤ ♢

Goal

4Geeks Coding Projects tutorials and exercises for people learning to code or improving their coding skills

Video tutorial

Difficulty

unknown

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

4 hrs