Room112.TextBasedProgrammimg
  • Room112.TextBased Programming
  • Unit 1
    • AI For Oceans
      • Written Response
    • Unit 1. Standards
    • Proficiency Scale
    • Storing Data in Variables
      • Python Functions
      • Variable Naming Conventions
    • String Basics
      • Functions With Strings
      • You Code Assignment 1.1
        • What do I do?
    • Escape Sequence Assignment
    • Anatomy of a Function
    • Data Types
      • Basic Operators
      • Basic Operator Pracitce
    • Collecting Data From the User
      • print()
      • Input Defaults to a ____
      • Basic Calculator
      • Chatbot
        • Step: Introduction
        • Step: Math
        • Step: Two Topics
        • Step: Feelings
        • Step Goodbye:
        • Extensions
    • Final Unit 1 Assignment
    • Unit 1 Assessment
      • Poetry or Song Lyric Generator
        • Example
        • Scoring
  • Unit 2
    • Unit 2 Standards
    • Python 3 Turtle Color Names
    • Python 3 Turtle Cheat Sheet
    • Writing Algorithims
      • Spaced Psuedocode
      • Meet a drawing turtle
        • Draw the Letter X?
    • Basic Turtle Functions
      • 2.0 Writing Your Initials
    • Loops
      • Drawing Practice
      • Flower/Geometric Bot
    • List of Colors in Geometric Art
Powered by GitBook
On this page
Export as PDF
  1. Unit 1
  2. Collecting Data From the User
  3. Chatbot

Step: Feelings

PreviousStep: Two TopicsNextStep Goodbye:

Last updated 4 years ago

One component of AI is the attempt to replicate human emotion. So we want to include emotions in the conversation - but your chatbot does not have the ability to make a learned response based on the users input so you have to be generic.

feeling = input("How are you feeling today?")
print("Why are you feeling", feeling, " now?")

#now continue this conversation that will work with 
#all the feelings