Skip to content
Home Tutorials Roadmaps Courses
Log in Join free
Tutorials AI What is AI?
AI Intermediate FREE

What is AI?

Lesson 1 of 17 Intermediate Interactive

Artificial Intelligence (AI) is the simulation of human intelligence by machines. AI systems can learn, reason, and make decisions.

Types of AI

  • Narrow AI — designed for specific tasks (Siri, ChatGPT)
  • General AI — human-level intelligence (theoretical)
  • Machine Learning — learning from data
  • Deep Learning — neural networks

Syntax

AI
# Simple AI concept
from sklearn.linear_model import LinearRegression

model = LinearRegression()
model.fit(X_train, y_train)
predictions = model.predict(X_test)
Python AI Example
PYTHON
# Simple AI concept
def simple_rule_based(text):
    keywords = {
        "hello": "Hi there!",
        "bye": "Goodbye!",
        "help": "How can I assist you?",
        "time": "I cannot tell time yet."
    }
    for word, response in keywords.items():
        if word in text.lower():
            return response
    return "I don't understand yet."

print(simple_rule_based("hello"))
print(simple_rule_based("help me"))

Practice

1
Exercise

What is Machine Learning?

Answer
A subset of AI where systems learn patterns from data without being explicitly programmed.

Quick Quiz

1

What is Narrow AI?

Narrow AI is designed to perform specific tasks like image recognition or language processing.

Interview Questions

AI is the broader concept of machines mimicking human intelligence. ML is a subset where systems learn from data.