Question: Learning Outcomes: Design a Python program from scratch Use the print() function to output data Use the input() function to ask for multiple data types

Learning Outcomes:

Design a Python program from scratch

Use the print() function to output data

Use the input() function to ask for multiple data types

Use basic arithmetic operations in a program

Use string methods and operations

Use if/else if/else statements to determine the flow of the program

Use loops to allow for the user to repeat the menu process

Comment your code

Debug your code

Test your code

Scenario

Now that you have knowledge of many basic Python statements, let's put that knowledge to use in a fun project!

Pick a topic of interest that you would like to educate others on. Simulate an Artificial Intelligence Chat Bot with a user that will provide some information/facts about a topic of interest to you.

Good topic suggestions:

biography about a person or team

historical event

career paths/requirements

advice on something you are knowledgeable about or interested in

Your code must do the following:

Greet your customer and introduce the ChatBot. To make it fun and create a good user experience, I recommend that you create a persona with a name to represent your Artificial Intelligence Chat Bot.

Ask for the user's first name. Store the value input to a variable and reference the user's name where appropriate at least two times in your program.

Provide a short paragraph overview of your topic of interest.

Within a loop, ask if your customer would like to hear more about 3 different items related to your topic of interest. Have the user choose a number or letter for which they would like to learn more about. Create an if statement that will provide them with information related to what letter they have chosen. Then ask if they would like to continue learning.

If they respond yes, repeat the menu with the 3 items (repeat the loop).

If they respond no, exit the loop.

For each item selected, include at least a short paragraph overview of the topic they chose.

Before you say goodbye to the user, ask if they would like a copy of your chat transcript. If they would, ask for their email address and output a message that repeats their email address with a message that you will send them an email (obviously we won't actually be sending that in this program but we will pretend). If no, then exit the program with a nice farewell message.

Use at least two if/elif blocks in your program and at least one loop within your program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!