Assignment 3: Chatbot What the code for assignment 3: chatbot Edhesive.

One latest education question and answer enquired students to tell what they ponder is the most crucial important aspect for a student to do to be able to get success. The one that response stood out from the rest was practice. People who ordinarily are successful do not become successful by being born. They work hard and dedication their lives to succeeding. This is how you can complete your goals. following some question and answer examples that you could utilise to upgrade your knowledge and gain insight that will guide you to keep up your school studies.

Question:

Assignment 3: Chatbot
What the code for assignment 3: chatbot Edhesive.

Answer:

In this exercise we have to use the knowledge of computational language in python to describe a code, like this:

The code can be found in the attached image.

To make it easier the code can be found below as:

name1=input(“What is your first name? “)

name2=input(“What is your last name? “)

print(“Hi there, “+ name1+” “+name2 +” ,nice to meet you!”)

print(“How old are you?”)

age = int(input(” “))

print(str(age) + ” is a good age.”)

if(age >= 16):

  print(“You are old enough to drive. \n”)

else:

  print(“Still taking the bus, I see. \n”)

print(“So, ” + name1 + “, how are you today?”)

feel=input(“”)

print(“You are ” + feel),

if(feel== “Happy”):

  print(“That is good to hear.”)

elif(feel == “Sad”):

  print(“I’m sorry to hear that. “)

  print(“Oh my!”)

print(“Tell me more. \n”)

From the answer and question examples above, hopefully, they might help the student handle the question they had been looking for and remember of each and every step stated in the answer above. Then can potentially carry out some sharing in a group discussion and also learning with the classmate somewhere around the topic, so another student also attain some enlightenment and still keeps up the school learning.

READ MORE  Which action is a sign of unhealthy personal boundaries? not letting others define you feeling bad when you say no speaking up when you are treated poorly giving only as much as you are comfortable with

Leave a Reply

Your email address will not be published.