MarzleyTech Learn

Home / Learn / Artificial intelligence (AI): from zero to pro / Level 1: What AI is, explained simply

Level 1: What AI is, explained simply

Artificial intelligence (AI) is technology that lets computers do things that normally need human intelligence: understanding language, recognising faces and voices, translating, spotting patterns, making predictions and creating text, images, music and video.

You already use AI every day, often without noticing:

WhereThe AI behind it
M-Pesa and banksFraud detection spots unusual transactions and blocks them
Google MapsPredicts traffic and the fastest route to town
GmailFilters spam and suggests replies
Your phone cameraRecognises faces, sharpens night photos
YouTube and TikTokRecommends the next video you'll probably watch
Google TranslateTranslates English ↔ Kiswahili
Voice typingTurns your speech into text
ChatGPT, Claude, Gemini, Meta AIChat, write, explain, summarise, code

This course takes you from zero to pro. Levels 1 and 2 need no skills at all, only a phone. Level 3 shows how to earn and work with AI. Level 4 explains how AI works inside, with small programs you can run. Level 5 shows how professionals build AI apps.

How is AI different from normal software?

Normal software follows rules a programmer wrote:

If the amount is more than KSh 150,000, reject the payment.

AI learns patterns from examples (data):

Here are 10 million past transactions, labelled "fraud" or "OK". Learn what fraud looks like.

The AI then judges new transactions it has never seen. Nobody wrote every rule; the system learned them. This is called machine learning, and it's how almost all modern AI works.

The family tree of AI

Artificial intelligence  (machines doing "smart" tasks)
└── Machine learning     (learning patterns from data)
    └── Deep learning    (machine learning with large "neural networks")
        └── Generative AI   (creates new text, images, audio, video)
            └── Large language models (LLMs): ChatGPT, Claude, Gemini, Llama
TermMeaning in one line
AlgorithmA step-by-step method a computer follows
DataExamples the AI learns from (text, photos, numbers, recordings)
ModelWhat the AI becomes after learning: the "trained brain"
TrainingShowing the model many examples so it learns
Prediction / inferenceUsing the trained model on something new
Generative AIAI that creates new content instead of just labelling
LLMA model trained on huge amounts of text to understand and write language
PromptThe instruction or question you type into an AI tool

What AI is good at, and what it isn't

AI is good atAI is bad at (or risky for)
Writing first drafts fastBeing right every time: it can confidently make things up
Explaining a topic in simple wordsKnowing very recent news (unless it can search the web)
Summarising long documentsUnderstanding your exact situation without details
Translating and rewordingMoral judgement and responsibility
Brainstorming ideasPrivate or sensitive decisions (medical, legal, financial) without a professional
Spotting patterns in lots of dataPhysical-world common sense in unusual situations

The golden rule: AI is a very fast, very well-read assistant that sometimes makes mistakes. You stay responsible for checking and using what it gives you.

Narrow AI vs general AI

  • Narrow AI does one kind of task well: recognising faces, recommending videos, playing chess. Almost all AI today is narrow, even if chatbots feel general.
  • Artificial general intelligence (AGI) would match humans across almost every task. Experts disagree on when or whether it will arrive. Treat bold predictions with care.

Common myths

MythReality
"AI understands like a human."It processes patterns in data. It can be very capable, but it doesn't have human experience.
"AI is always right because it's a computer."It can be wrong, outdated or biased. Always check important facts.
"AI will take all jobs."It changes jobs. People who use AI well often replace people who don't.
"You need to be a programmer to use AI."You only need to type (or speak) clearly. Programming helps you build AI.
"AI is only for big companies."A student, a mama mboga or a matatu sacco can use free AI tools today.

How AI can help you, starting today

  • Students: explain topics, quiz you before exams, check your reasoning (see the next lessons).
  • Job seekers: improve your CV, practise interview questions.
  • Small businesses: write product descriptions, social posts, customer replies, simple budgets.
  • Farmers: questions about pests, planting and markets (and confirm with an extension officer).
  • Workers: emails, reports, Excel formulas, meeting summaries.
  • Creators: video scripts, captions, thumbnails ideas.

Try thinking like an AI

This tiny Python program "learns" which word appears most in examples of spam messages. It's the simplest possible idea behind machine learning: count patterns in examples. Press Run.

Python · runs live in the interactive lesson
spam = ["You have won KSh 50000 click here", "Win a free phone now click", "Claim your prize click now"]
normal = ["Meeting at 3pm today", "Please send the invoice", "Can you call me tomorrow"]

def word_counts(messages):
    counts = {}
    for m in messages:
        for w in m.lower().split():
            counts[w] = counts.get(w, 0) + 1
    return counts

spam_words = word_counts(spam)
top = sorted(spam_words.items(), key=lambda kv: kv[1], reverse=True)[:3]
print("Most common words in spam:", top)

def looks_like_spam(text):
    return sum(spam_words.get(w, 0) for w in text.lower().split()) >= 2

for msg in ["Click now to claim your free prize", "Please send the report tomorrow"]:
    print(msg, "->", "SPAM" if looks_like_spam(msg) else "OK")

Real spam filters learn from millions of messages and many more signals, but the core idea is the same. In Level 4 you'll build real machine learning step by step.

Check yourself

  1. What do we call AI that creates new text, images or music?

    Show answer

    generative AI

  2. What does AI learn patterns from?

    Show answer

    data

  3. What is the instruction you type into an AI tool called?

    Show answer

    a prompt

  4. What does LLM stand for?

    Show answer

    large language model

  5. Most AI today is narrow or general?

    Show answer

    narrow

  6. Can AI make mistakes even when it sounds confident? (yes or no)

    Show answer

    yes

Lesson 1 of 17 in Artificial intelligence (AI): from zero to pro · Written by · Course notes