0 results for
ICT
Computing
Responsive image

Coding in Python - Chatbots

0 results forGuest
Overview
Flight Path
Learning Objectives
0 results forGuest
IDSkill_name
 4 I can describe an experience of Artificial Intelligence from using chatbots
 4 I can explain what a variable is and how we use them
 4 I can explain what a data type is and how we use them
 4 I can build the first part of an artificial intelligence program using Python

Starter - Task

🏁 Learning Objective 5 :- I can describe an experience of Artificial Intelligence from using chatbots


Using a Chatbot

Click on the cleverbot image above to use a chatbot. Ask the chatbot different types of questions to find out the answers to the questions below.

  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?

Update your objectives

control

🏁 Learning Objective 6 :- I can explain what a variable is and how we use them


Python Variables

A variable is a location in memory used to store some data (value).

They are given unique names to differentiate between different memory locations. The rules for writing a variable name is same as the rules for writing identifiers in Python.

Variable assignment - Assigning value to a Variable in Python


  • 1

    Simple variable OUTPUT.
    Complete the challenge below

  • 2

    Using Mathmatical Operators
    Complete the challenge below

What is a variable?

Write below in your own words what a variable is and why we use them when we are coding.



Update your objectives

control

🏁 Learning Objective 7 :- I can explain what a data type is and how we use them


Data types in Python

Every value in Python has a datatype.

There are various data types in Python. Some of the important types are listed below.

  • 3

    Using Data Types
    Complete the challenge below

Update your objectives

control

🏁 Learning Objective 8 :- I can build the first part of an artificial intelligence program using Python


Creating a chatbot

Type the code below into your python IDLE.

print("Please type your name in")
my_name = input()
print("Nice to meet you " + my_name)

RUN your code and test that it works.

Can you add another question and print out another answer?

If you are not sure what to write look at my example below.

Type the code below into your python IDLE.

print("So,"+ my_name + " what is your favourite food?" )
favourite_food = input()
print( "Ah, your favourite food is " + favourite_food)

Update your objectives

control


0 results forGuest
Recent Comments

Teacher Date: 2020-07-05


Guest