Please help me I need it asap it’s due tonight


A chatbot is a computer program designed to emulate human conversation. For this program, you will use if statements, user input, and random numbers to create a basic chatbot.

X

rou today?")

The Scenario

You have decided to design a fashion chatbot that helps people pick out their fashion preferences. Your bot can gauge what types of clothes and accessories the user might like.

Your chatbot should ask the user the following (minimum requirements for the grader) and then give answers depending on the answers the user inputs:

- at least 6 questions

- at least 3 if-elif-else statements

_ the use of the random module and randomly generated numbers

Based on these criteria, some responses will be based on what the user types and some will be based on random numbers.

For example, if the chatbot asks what is your favorite head accessory, your chatbot might respond I also think baseball hats are best. In response to a user input of baseball hats, or I love beanies! in response to a user input of Additionally, you could also have a random number generated between, say, 1 and 3 and have a corresponding response depending on the number to randomly answer with That's in right now. Or Wow, so stylish! and so on

Note that in order to pass all of the test cases, your randomly generated numbers should not be dependent on user input (for example, you would not want to include a situation where if the user inputs a specific phrase, then a random number is generated). The randomly generated numbers should prompt a reply from the chatbot, and should do so separately from the user input statements that prompt a reply from the chatbot



Answer :

Python utilizes garbage collection and contains dynamic typing. It supports multiple programming paradigms, including structured, object-oriented and functional programming.

What is meant by python?

A high-level, all-purpose programming language is Python. Code readability is prioritized in its design philosophy, which makes heavy use of indentation. Python uses garbage collection and has dynamic typing. It supports multiple programming paradigms, including structured, object-oriented and functional programming.

We have to utilize the knowledge of the computational language in python to document the code.

To make it simpler the code exists defined as:

import random

good_responses = (["That's cool!", "Wow!", "That's great to hear!", "Tell me more"])

bad_responses = (["I'm sorry", "That sad"])

first_name = input("What's your first name? ")

last_name = input("What's your last name? ")

print("Hello {first_name} {last_name}, nice to meet you!")

age = int(input(f"How old are you, {first_name}? "))

if age > 17:

print("Wow, you're old enough to vote!")

else:

print("Quite young, aren't you.")

To learn more about python refer to:

brainly.com/question/22841107

#SPJ4

Other Questions