0Pricing
Coding for Kids · Lesson

A Fortune Teller

Give random fortunes.

A Fortune Teller 🔮

Let us build a magical fortune teller that gives a random message! Mix lists and random.choice. ✨

A List of Fortunes 📜

First, write some fortunes in a list.

fortunes = ["You will be lucky!", "Adventure awaits!", "Make a new friend!"]
print(fortunes)

All lessons in this course

  1. The random Module
  2. Random Numbers
  3. Random Choices
  4. A Fortune Teller
← Back to Coding for Kids