Lesson 1
Learning Intentions
To understand the limitations of a chatbot and explain how they are programmed.
Be able to explain what an integer is
Success Criteria
Describe an experience of Artificial Intelligence from using chatbots
Build the first part of an artificial intelligence program using Python
Use the Python Interpreter as a calculator.
Activity 1 - Chatbots
Describe an experience of Artificial Intelligence from using chatbots.
To develop a better understanding of some current artificial intelligence technologies like
Siri, you have 5 – 10 minutes to try some of some of these chatbots.
Websites
A chatbot that talks with sound http://chaturing.com/artwork/select the ‘chatbot’ menu
A simple text-only chatbot http://chaturing.com/artwork/chatbot/
iGod http://www.titane.ca/concordia/dfar251/igod/main.html
Rosette http://labs.telltalegames.com/rosette/
A directory of chatbots http://www.chatbots.org/language/english/
Another directory of chatbots http://www.pandorabots.com
Working in pairs answer the following questions In your exercise books
1. What sorts of questions are the chatbots very good at?
2. What questions do chatbots not answer very well?
3. What process/stages are taking place after the user types in a comment?
4. What tricks does the chatbot use to make it seem real, e.g. artificially intelligent?
To understand the limitations of a chatbot and explain how they are programmed.
Be able to explain what an integer is
Success Criteria
Describe an experience of Artificial Intelligence from using chatbots
Build the first part of an artificial intelligence program using Python
Use the Python Interpreter as a calculator.
Activity 1 - Chatbots
Describe an experience of Artificial Intelligence from using chatbots.
To develop a better understanding of some current artificial intelligence technologies like
Siri, you have 5 – 10 minutes to try some of some of these chatbots.
Websites
A chatbot that talks with sound http://chaturing.com/artwork/select the ‘chatbot’ menu
A simple text-only chatbot http://chaturing.com/artwork/chatbot/
iGod http://www.titane.ca/concordia/dfar251/igod/main.html
Rosette http://labs.telltalegames.com/rosette/
A directory of chatbots http://www.chatbots.org/language/english/
Another directory of chatbots http://www.pandorabots.com
Working in pairs answer the following questions In your exercise books
1. What sorts of questions are the chatbots very good at?
2. What questions do chatbots not answer very well?
3. What process/stages are taking place after the user types in a comment?
4. What tricks does the chatbot use to make it seem real, e.g. artificially intelligent?
Activity 2
Building the first part of an artificial intelligence program using Python.
Type this code into a new python window (make sure the colours are the same. Save this as my_name.py
Consider the kinds of questions and information that people ask about each other when they first meet, you now need to think, pair and share the topics you have come up with.
Activity 3
Next you should consider adding more complex questions into your script. Look at the following script notice in the 4th line it is necessary to have two + signs, one either side of the variable my_name. Common errors to watch for are not having a complete pair of double quotation marks or adding + signs between variables and strings.
A variable is a stored value, a string (or text string) is a sequence of characters which may be words.
Identify what a string is and what a variable is – search for definitions and write your own explanation in your theory book, and identify them in your own program module.
A string can be stored in a variable.
Identify what a string is and what a variable is – search for definitions and write your own explanation in your theory book, and identify them in your own program module.
A string can be stored in a variable.
Activity 4
Challenge to test understanding of this activity - create some script at the end of the program module that summarises e.g.
“So Alan, it was lovely to meet you.
I now know that you live in Preston and that your favourite food is Pizza”.
“So Alan, it was lovely to meet you.
I now know that you live in Preston and that your favourite food is Pizza”.
Peer Assessment
Swap places and evaluate each other’s programs. You are going to be awarding of points for levels of challenge, e.g. program that works =1 point, working program with 3 or more questions =2 points, working program with 3 or more questions and summary at end =3 points.
Activity 5
Using the Python Interpreter as a calculator
Going back now to the imperative mode of the interpreter, we see that Python can function as a calculator. Work out the answers to these maths problems.
156 add 567,
132 subtract 46,
256 divided by 8,
389 multiplied by 13.
Note of interest
In computing, whole numbers (without decimals) are referred to as integers, this means that while
4.0 is not considered an integer, 4 is. It is possible to store integers into variables.
Going back now to the imperative mode of the interpreter, we see that Python can function as a calculator. Work out the answers to these maths problems.
156 add 567,
132 subtract 46,
256 divided by 8,
389 multiplied by 13.
Note of interest
In computing, whole numbers (without decimals) are referred to as integers, this means that while
4.0 is not considered an integer, 4 is. It is possible to store integers into variables.
Extra Extra
Try to assign numbers to variables
>>> pizza = 250
>>> coke = 100
>>> chips = 150
expressions can then be evaluated such as:
>>> pizza + chips
400
>>> 2 * pizza
500
variables could be your names and ages.
>>> pizza = 250
>>> coke = 100
>>> chips = 150
expressions can then be evaluated such as:
>>> pizza + chips
400
>>> 2 * pizza
500
variables could be your names and ages.