Beginner level
Python and artificial intelligence
Learn the basics of Python and see, through a small “agent” example, how programs that use artificial intelligence are built.
5 lessons · 60 min
- How programs work with artificial intelligence8 min
- Python basics: print, variable, f-string, list and loop14 min
- Dictionary and JSON: structured data12 min
- Functions: code you can reuse12 min
- A simple “agent”: a program that picks a tool14 min
Project: “Mini assistant”
Write a small Python program: a dictionary with a few questions and answers, a function that returns the matching answer, and an “I do not know” case for an unknown question. Test it with 3 questions.
Project steps
- I built the question–answer dictionary
- I wrote the function that returns an answer
- I handled an unknown question
- I tested it with 3 questions
