Assignment 3: Chatbox python coding
I just need something real simple that follows the criteria in simple coding

Assignment 3: Chatbox Python CodingI Just Need Something Real Simple That Follows The Criteria In Simple

Answers

Answer 1

In python:

import random

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

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

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

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

print(f"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.")

   

color = input("What's your favorite color? ")

print(good_responses[random.randint(0, 3)])

feeling = input("How are you feeling? (sad/happy) ")

if feeling == 'sad':

   print(bad_responses[random.randint(0, 1)])

else:

   print(good_responses[random.randint(0, 3)])

print(f"It's been nice chatting with you, {first_name}!")

I hope this helps!


Related Questions

Nico needs to change the font and color of his worksheet at once. Use the drop-down menu to determine what he should do.

First, he should select all of the worksheet at once by clicking the
.

Then, he should right-click the
to change the font of the whole worksheet at once.

Release the cursor and select the
to change the color of the font.

Release the cursor and both font and color should be changed.

Answers

Answer:

he should click the top left corner of the worksheet

he should right click the font-drop down choices

release the cursor and select the color-drop down choices

Explanation:

I just did this

The things that Nico needs to do include the following:

He should click the top left corner of the worksheet.He should right-click the font-drop down choices.He should release the cursor and select the color.

It should be noted that fonts and colors are used in order to make one's work more pleasing to the eyes. Therefore, the steps that are illustrated above are important for Nico to change the font and color of his worksheet at once.

Read related link on:

https://brainly.com/question/18468837

Input Format:

Get a, b, and c as input.

Output Format:

Output “Yes” or “No” depending on if the given quadratic is factorable. If it is

factorable, output the roots in increasing order. If there are two of the exact same roots, only output it once. Round roots to the nearest hundredth.

Sample Input Sample Output

1 1 -1 Yes -1.00, 0.00

1 3 2 Yes -2.00, -1.00

2 1 2 No

Answers

In python 3:

import math

def quadratic(a, b, c):

   if (b ** 2) - (4 * a * c) < 0:

       return "No"

   root1 = round((-b + (math.sqrt((b ** 2) - (4 * a * c)))) / (2 * a), 2)

   root2 = round((-b - (math.sqrt((b ** 2) - (4 * a * c)))) / (2 * a), 2)

   lst = ([])

   lst.append(root1)

   lst.append(root2)

   lst.sort()

   return f"Yes {lst[0]}, {lst[1]}"

print(quadratic(1, 3, 2))

The print statement tests the function. I hope this helps!

[JAVA] 30 points to write the program

Answers

The text document I added has all the code needed to complete this problem. Best of luck.

"How does the INTERNET
work?
O Celluar
O ip Adress
O Twisted Pair
O Fiber Optic
O Server

Answers

Answer:

server

Explanation:

it works through a server

Answer:

IP adress

Explanation:

Read the following scenario:
Two graphic design artists are leaving a major production studio to start a small production company. The artists are in the process of hiring team members when the artists disagree on two potential candidates for one position. Neither artist is willing to compromise, and the hiring process comes to a standstill. Meanwhile, a feature film company has expressed interest in hiring the new production company to work on an upcoming film.
How would this problem most likely be solved?
a. The partners would meet and reevaluate their staff needs, potentially making room for both candidates.
b. The partners would split up and open competing production companies.
c. The partners would defer the hiring of the position to the film producer.
d. The partners would dissolve their business and move into freelancing.
Please answer now !!!

Answers

Answer:

A

Explanation:

None of the other answers suit a professional business and situation.

I WILL MARK BRAINLIEST 11

Answers

Answer:

Many may answer different to this question, but in my opinion I would say it's false

A topographical map of the world, with no labels is _____ abstract than a map with the names of all the countries and their capitals.

The blank is either more/less

Answers

Answer:

more

Explanation:

my Brian is so big, some would even go as far as to say its the biggest Brian in America

NEED ANSWER ASAP!!!
Describe common gaming tasks that would make sense to set up as each of the following: a forever loop; a conditional-controlled loop; a count-controlled loop.

Answers

Answer:

a count-controlled loop.

Explanation:

That is my edu guess.

Answer:

Forever loop: a movement the goes on for ever

Count-controlled loop: a g They are so common, most programming

languages have "shorthand" syntax for such loops.

conditional-controlled loop:   repetitive control structures are a way for computer programs to repeat one or more various steps.

Explanation:

I don't have an explanation sorry.

When would you most likely use the Merge and Center option?

A: when you want to add the cell numbers together

B: when you want to know the percentage of an amount

C: when only one cell has data but you want to center that information

D: when you want to multiply all available cells

Answers

Answer:

c

Explanation:

i had this problem and C was the right answer

Answer:

C

Explanation:

Type the correct answer in the box.
Which function will display 6 as the output in the following formula?
C1*(C2+B1)
where C1 is 6, C2 is 2, and B1 is 4
___.

Answers

Answer:

3

Explanation:

if you could bring any fictional character to life who would it be and why

Answers

Answer:

someone helpful like: saitama or any hero from any manga, except eryn, spooky.

Explanation:

Answer:

bilbo baggins

Explanation:

huge hobbit fan

♥my phone is super cracked and i need 30 dollars to fix it. i'm 14. does anyone know how i can make 30 dollars really fast without taking those dumb surveys? i really need help.♥

Answers

Answer:

hi u could sell some old stuff online?

help a nieghbor?

lemonade stand?

Explanation:

The first device to simulate motion in pictures was the ____.

Answers

The other person is correct...The first device to simulate motion in pictures was the kinetoscope.
brainliest?

HELP QUICKLY!!!! PLEASE ANSWER IF YOU KNOW, IF NOT DON'T ANSWER FOR POINTS ! I WILL FLAG YOU!!!
What quality would you look for in an image format if you needed the highest quality photo printing in a magazine?

Answers

Answer:

TIF

Explanation:

Answer

TIF

Explanation:

A program is written to compute the sum of the integers from 1 to 10. The programmer, well trained in reusability and maintainability, writes the program so that it computes the sum of the numbers from k to n. However, a team of security specialists scrutinizes the code. The team certifies that this program properly sets k to 1 and n to 10; therefore, the program is certified as being properly restricted in that it always operates on precisely the range 1 to 10. List different ways that this program can be sabotaged so that during execution it computes a different sum, for example, 3 to 20.

Answers

Answer:

See explanation section

Explanation:

See the program at the end of this solution

The program can be sabotaged if the source file is altered before running the program.

Take for instance,

Someone changes

for(int i =k;i<=n;i++)

to

for(int i =3;i<=20;i++)

This implies that no matter the user input, the program will only calculate the sum of 3 to 20

It is also possible that the program is altered by an external process.

Take for instance;

n = 10

k = 1

And the sum has been calculated for the range of k = 1 to 5.

Then the program is altered by an external process.

15 (sum of 1 to 5) will be displayed instead of 55 (sum of 1 to 10)

Program written in C++

#include<iostream>

using namespace std;

int main() {

int k.n,total=0;

cin>>k;

cin>>n;

//Assume k will always be less than n

for(int i =k;i<=n;i++) {

total+=i;

}

System.out.print(total);

return 0;

}

What are the possible values you can store in the C# "bool" data type?

Group of answer choices

true or false

1 or 2

more or less

A or B

Answers

Answer:

n

Explanation:

Bool is a boolean and it stores True and False values.

What does the acronym A PACT help you to remember when you research a topic?

Answers

Answer:

people, activities, context, and technologies

Give two reasons why an IT manager consider using a cloud software?​

Answers

Answer:

Cloud offers better insight.In a world awash in structured and, increasingly, unstructured data, 54% of leading organizations are using analytics to derive insights from big data, which helps them target customers and product opportunities more effectively.

Cloud helps collaboration. Cloud allows work to be accessed from multiple devices and from anywhere, which in turns makes it much easier for teams to collaborate on shared data.

Explanation:

The purpose of a conductor is to ____. * 2 points provide a high resistance path between electrical components protect the circuit board from excessive currents provide a low resistance path between electrical components provide insulating qualities between electrical components

Answers

Answer:

C. a low resistance path between electrical components

Explanation:

A conductor can be defined as any material or object that allows the free flow of current or electrons (charge) in one or more directions in an electrical circuit. Some examples of a conductor are metals, copper, aluminum, graphite, etc.

The purpose of a conductor is to provide a low resistance path between electrical components. This low resistance path is to ensure that the electrical components allows the free flow of electrons and thus, enabling charge transfer.

which part of project management involves determining possible risks ​

Answers

Answer:

A Gantt chart is primarily used for project management. Project managers use it frequently for effective project handling. A Gantt Chart enables the following: Easier task scheduling.The triple constraint theory, also called the Iron Triangle in project management, defines the three elements (and their variations) as follows:

Scope, time, budget.

Scope, schedule, cost.

Good, fast, cheap.

A proven methodical life cycle is necessary to repeatedly implement and manage projects successfully.

Pick Two: If the post office delivered mail exactly like the routers deliver messages on the Internet, which of the following statements would be true?
A. One mailman would be responsible for delivering a letter from sender to receiver.
B. The mailman would sometimes take a different path to deliver each letter to your home.
C. Letters would be written on the outside of the envelope for all to read instead of letters put inside envelopes.
D. Your mail could not be delivered if a road your mailman was planning to take were under construction.

Answers

Answer:

B and C.

Explanation:

Routers can be defined as a device that routes the data from LAN to other connections.

If a post office delivery mail look exactly like  the routers then message delivery will look like the mailman will use different paths to deliver letter to your home. Each time the mailman will sometimes use different paths to do so.

Another similarity shared between the router and post office delivery will be that the letters will be written on the outside of the envelope instead of inside the envelopes.

Therefore, the correct options are B and C.

Answer: The answer is b and c

Explanation:

B: The mailman would sometimes take a different path to deliver each letter to your home.

C: Letters would be written on the outside of the envelope for all to read instead of letters put inside envelopes.

who invented the computer? ​

Answers

Answer:

Charles Babbage invented computer

What will the outcome look like
(Ignore the answer l put)

Answers

The correct answer is 0123456789.

The for loop initializes the variable i at value 0 and then it increments i by 1 and prints it to the screen while i is less than 10.

I hope this helps!

___ is the process of discovering useful knowledge from a collection of data.
BIG
DATA
THE 3 V’S
KDD

Answers

The KDD process is the overall processing of data collection p

what is the full form of www?​

Answers

Answer:

world wide web

Explanation:

After the computer process the data, the result is first save in

Answers

Answer:

Answer

Saved In Computer

Write a program that will ask the user to continuously input positive numbers until they type -1 to stop. The program should add up all the number they entered as they are typed ( excluding the -1) then print

example: user enters
8

4.

20

-1
Total: 32

Answers

In python 3:

total = 0

while True:

   number = int(input("Enter a number: "))

   if number == -1:

       break

   total += number

print("Total: {}".format(total))

I hope this helps!

in which grades do students typically take the PSAT?
A. Ninth and tenth grades
B. Eighth and ninth grades
O C. Tenth and eleventh grades
O D. Eleventh and twelfth grades

Answers

B eighth and ninth grade

B. Eighth and Ninth grade.

Brainliest will be given

Answers

Answer:

c.

Explanation:

Answer:

C

Explanation:

PLEASEEE HELP!!!! 50 POINTSSS!!!!!

Choose all that apply.

Select the reliable sources of information.


a presentation in a college finance class

a personal Web site

an expert on television

financial data from 1978

loan information from your credit union

www.IRS.gov

Answers

Answer:

i belive the 2 one

Explanation:

Other Questions
which has the same value as 1/1000 Which of these did NOT join the United States because of the Mexican War? A) Utah B) Texas C) Oklahoma D) California What was the judiciary act of 1801? Write the equation of the line that passes through the given points. (-2,0) and (0, -1) Help me solve this problem please What titles did Oate gain once his grant was approved?Describe the journey up the Rio Grande. What is the additive inverse of the polynomial 9xy2 + 6x2y 5x3?9xy2 6x2y + 5x39xy2 6x2y 5x39xy2 + 6x2y + 5x39xy2 6x2y + 5x3 x - 4y = -13x + 5y = 31 Most of China's population is concentrated: a)in the eastern region. b)in the northern deserts. c)on its many islands. d)inland, away from the coastline. A person travels by car from one city to another with different constant speeds between pairs of cities. She drive 60.0 min at 100.0km/h, 5.0 min at 90.0 km/h, and 40.0 min at 60.0km/h and soends 30.0 min eating lunch and buying gas. (A) determine the average speed for the trip. (B) determine the distance between the intial and final cities alkng the route Why was the Roman system of justice so important? Summarize the role of a structural engineer, including what the job entails, and identify three areas in which they work. What is the most important thing to include in a summary? What was Africa's significance in ww2? Are their ethical issues to consider when planning a database? For example, should personal data, such as medical information be stored in the same DBMS that manages employee salary and benefits data? Why or why not? In a sample of 63 cans, the average diameter was found to be 3.7in. with a standard deviation of 0.32. Give a point estimate for the population variance of the diameter of the cans evine Company uses the perpetual inventory system. Apr. 8 Sold merchandise for $4,500 (that had cost $3,326) and accepted the customer's Suntrust Bank Card. Suntrust charges a 4% fee. 12 Sold merchandise for $4,600 (that had cost $2,981) and accepted the customer's Continental Card. Continental charges a 2.5% fee. Prepare journal entries to record the above credit card transactions of Levine Company. (Round your answers to the nearest whole dollar amount.) The balances of certain accounts of Brittany Corporation on April 30, 2019, were as follows: Sales $ 220,000 Sales Returns and Allowances $ 2,000 The firms net sales are subject to a 6 percent sales tax. Prepare the general journal entry to record payment of the sales tax payable on April 30, 2019. True or False: Certain irrational numbers can be written as fractions The diagram represents the water cycle. Which arrow includes the process of transpiration?a. arrow 1b. arrow 2c. arrow 3d. arrow 4