Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary ARTIFICIAL_INTELLIGENCE

Rating
-
Sold
-
Pages
5
Uploaded on
02-11-2025
Written in
2025/2026

Artificial Intelligence is the ability of machines to perform tasks that normally require human intelligence. It involves processes like learning, reasoning, problem-solving, perception, and language understanding. AI systems can be categorized into types such as weak (narrow) AI, strong AI, and machine learning-based systems. Applications of AI include robotics, virtual assistants, healthcare, finance, education, and automation. Challenges of AI include ethical concerns, job displacement, bias in data, privacy issues, and high development costs.

Show more Read less
Institution
Course

Content preview

:




COMPUTER SCIENCE LEVEL 6

ARTIFICIAL INTELLIGENCE WITH PYTHON PROGRAMMING

UNIT CODE: DICS 1215



PRACTICALS
Date……………………………………

RESOURCES:

Computer with Python installed (preferably Anaconda), Jupyter Notebook or any Python IDE,
internet access (if allowed), observe laboratory rules.




Task 1: Create a Simple AI Chatbot

You are required to implement a rule-based chatbot using Python:

a) Define a function respond() that takes user input and replies based on basic greetings.
b) Handle at least three greetings like "hello", "how are you", and "bye".
c) Add a fallback response for unrecognized inputs.
d) Run a loop to allow the user to interact until they type "bye".
e) Test your chatbot with different user inputs.

, Task 2: Perform a Decision-Making Program Using if-else

Create a simple Python program that makes decisions based on user input:

Written for

Institution
Course

Document information

Uploaded on
November 2, 2025
Number of pages
5
Written in
2025/2026
Type
SUMMARY

Subjects

$3.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
ronaldkiprotich

Get to know the seller

Seller avatar
ronaldkiprotich Cooperative university
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
6 months
Number of followers
0
Documents
4
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions