1 of 12

Raspberry Pi

The Turing test

Part 1

2 of 12

Today’s LO: learning to program to simulate a human conversation.

  • Know how to use print statements and input prompts
  • Create a simple conversation between the user and the program

Add a variety of questions to the code using input and print statements

All

C+

Most

B+

Some

A+

3 of 12

Starter – What is artificial intelligence?

The theory and development of computer systems so that they are able to perform tasks that normally require human intelligence

The turing test video

4 of 12

Challenge – using input and print statements

  • Find IDLE3 on the PI
  • Make a new folder called ‘your name’.

  • Use Chat bot worksheet to help you to program the robot.

  • Write a series of inputs and print statements to form a conversation between the computer and the user.

Can you program the robot to respond to your questions?

5 of 12

IMPORTANT the spaces before " in the string are important.

Can you add your own inputs and print statements?

6 of 12

Adding pauses

7 of 12

selection

8 of 12

Plenary: Swap computers and test each other’s programs

  • What happens if you enter an unexpected response?

  • What have they been able to achieve?

  • How can you prove your understanding?

  • Suggest at least one improvement by writing a comment using the # 

9 of 12

Raspberry Pi

The Turing test

Part 2

10 of 12

Starter – Can you explain what this code is doing?

11 of 12

Today’s LO: learning to program to simulate a human conversation.

  • Know how to use print statements and input prompts
  • Create a simple conversation between the user and the program

Add a variety of questions to the code using input and print statements

All

C+

Most

B+

Some

A+

12 of 12

Challenge – Creating the chat robot!

  • Go to LXterminal sudo apt-get install espeak.

  • Find IDLE3 on the PI

  • Use THE TURING TEST workbook to help you to program the robot.

  • Use the headphones to hear the computer speak the responses.

Extension: Can you program the computer to respond to unexpected inputs?