4Geeks logo
4Geeks logo
About us

Learning library

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

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

Full-Stack Software Developer

Data Science and Machine Learning - 16 wks

Search from all Lessons

Social & live learning

The most efficient way to learn: Join a cohort with classmates just like you, live streams, impromptu coding sessions, live tutorials with real experts, and stay motivated.

← Back to Projects

Continue learning for free about:

Random Card Generator CLI

Goal

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

Difficulty

beginner

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

4 hrs

Technologies

alt text Random Card Dealer CLI Python

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

Difficulty

beginner

Repository

Click to open

Video

Not available

Live demo

Not available

Average duration

4 hrs

Technologies