0
0
AI for Everyoneknowledge~30 mins

What AI hallucinations are in AI for Everyone - Mini Project: Build & Apply

Choose your learning style9 modes available
Understanding What AI Hallucinations Are
📖 Scenario: You are learning about artificial intelligence (AI) and how it sometimes makes mistakes called hallucinations. These mistakes happen when AI gives answers that sound real but are actually wrong or made up.
🎯 Goal: Build a simple explanation and example list that shows what AI hallucinations are and how to recognize them.
📋 What You'll Learn
Create a dictionary called ai_hallucinations with three examples of AI hallucinations and their explanations.
Add a variable called example_count that stores the number of examples in the dictionary.
Use a for loop with variables example and description to iterate over ai_hallucinations.items().
Add a final statement that sets a variable summary to a short explanation of AI hallucinations.
💡 Why This Matters
🌍 Real World
Understanding AI hallucinations helps people use AI tools more carefully and avoid trusting wrong information.
💼 Career
Knowledge of AI hallucinations is important for jobs in AI development, content creation, and digital literacy education.
Progress0 / 4 steps
1
Create the AI hallucinations dictionary
Create a dictionary called ai_hallucinations with these exact entries: 'Wrong facts' with value 'AI gives incorrect information that sounds true.', 'Made-up sources' with value 'AI invents references or quotes that do not exist.', and 'Confused context' with value 'AI mixes up details from different topics.'.
AI for Everyone
Hint

Use curly braces {} to create a dictionary with keys and values as shown.

2
Add a variable for the number of examples
Add a variable called example_count that stores the number of entries in the ai_hallucinations dictionary using the len() function.
AI for Everyone
Hint

Use len(ai_hallucinations) to get the number of items in the dictionary.

3
Loop through the AI hallucination examples
Use a for loop with variables example and description to iterate over ai_hallucinations.items(). Inside the loop, write a comment explaining that this loop goes through each hallucination example and its explanation.
AI for Everyone
Hint

Use for example, description in ai_hallucinations.items(): to loop through the dictionary.

4
Add a summary explanation variable
Add a variable called summary and set it to the string 'AI hallucinations are mistakes where AI gives false or made-up information.'.
AI for Everyone
Hint

Set summary to the exact string given.