PLEASE HELP
7.6 LAB: Replacement words Write a program that finds word differences between two sentences. The input begins with the first sentence and the following input line is the second sentence. Assume that the two sentences have the same number of words. The program displays word pairs that differ between the two sentences. One pair is displayed per line.

Ex: If the input is:

Smaller cars get better gas mileage Tiny cars get great fuel economy

then the output is:

Smaller Tiny better great gas fuel mileage economy


Hint: Store each input line into a list of strings.

Answers

Answer 1

This assignment is required to be executed in python programming language. See the code below.

What is the code that displays word pairs that differ between the two sentences?

# taking two sentence as input s1 = input() s2 = input()  

# getting the words in both sentences in list w1 = s1.split() w2 = s2.split()  # looping through the word lists and checking if they are equal or not for i in range(len(w1)):  

# printing word pairs if they are not equal

if (w1[i] != w2[i]):

 print(w1[i],w2[i])    

Learn more about python programming language at;
https://brainly.com/question/26497128
#SPJ1


Related Questions

I need help with my solution

Answers

Answer: B. a = 14 and b = 3

Explanation:

Let's work through the expressions one-by-one:

The first 2 lines create 2 varaibles, a and b, with values of 2 and 7, respectively.

The next line assigns a to the product of a and b.

a * b = 2 * 7 = 14, so the new value of a is 14.

The last line assigns the remainder of b divided by the difference of a and 10.

a - 10 is 14 - 10 which is 4.

The value of b is 7 due to the second expression. 7 % 4 is 3 as 4 goes into 7 once with 3 left over. This value of three is assigned to b.

After all the expressions, the values of the variables are as follows: a = 14 and b = 3.

Which of the following closely represents the objective of the four dimensions in ITIL?
1. Handling of increased complexity of service management in modern scenarios
2. Holistic approach to Service management covering all key / aspects
3. Simplifying Service management to focus on only most critical aspects
4. Clear segregation of service management activities so that it can be assigned different functions/organizations

Answers

The option that closely represents the objective of the four dimensions in ITIL is Holistic approach to Service management covering all key / aspects.

What are the dimensions of service management ITIL?

They are:

PeopleProcessProducts or technologyPartners and suppliers.

Note that the four dimensions stands for the perspectives that are vital to right delivering value to customers and some stakeholders in the terms of products and services.

Hence, The option that closely represents the objective of the four dimensions in ITIL is Holistic approach to Service management covering all key / aspects.

Learn more about ITIL from

https://brainly.com/question/14098997

#SPJ1

The time taken to complete a motorcycle race is normally distributed, with an average time (µ) of 2.5 hours and a standard deviation (sigma) of 0.5 hours.
What is the probability that a

Answers

The probability that a randomly selected cyclist will take between 2.35 and 2.45 hours to finish the race is said to be 0.0781 = 7.81% probability.

What is the probability about?

Probability is  known to be the way or the measurement of the likelihood that a given event  will take place.

Note that in the case above, the probability that a randomly selected cyclist will take between 2.35 and 2.45 hours to finish the race is said to be 0.0781 = 7.81% probability.

See full question below

The time taken to complete a motorcycle race is normally distributed, with an average time (µ) of 2.5 hours and a standard deviation (sigma) of 0.5 hours.

What is the probability that a randomly selected cyclist will take between 2.35 and 2.45 hours to complete the race?

Learn more about race from

https://brainly.com/question/28062418

#SPJ1

Fill in the missing terms relating to computer software

Answers

The missing terms relating to computer software are:

Utilitiesapplication software.What are Programs designed to perform specific tasks?

Programs that are made to carry out specific tasks is known as application software.

Note that An application software is said to be a computer software set up to carry out a group of coordinated functions and as such, The missing terms relating to computer software are:

Utilitiesapplication software.

Learn more about computer software from

https://brainly.com/question/1538272

#SPJ1

: Chronic state of ____________________, unrealistic & excessive worry about two or more life ____________________

Answers

The Chronic state of  generalized anxiety disorder is an unrealistic and excessive worry about two or more life that  last for at least six months.

What disorder is chronic worry?

Generalized Anxiety Disorder, GAD, is known to be a form of an anxiety disorder that is known by:

chronic anxiety exaggerated worry tension and others.

Note that it is also called an excessive or unrealistic worry in regards to life circumstances that is said to occur for about at least six months.

Hence, The Chronic state of  generalized anxiety disorder is an unrealistic and excessive worry about two or more life that  last for at least six months.

Learn more about Generalized Anxiety Disorder from

https://brainly.com/question/22676443

#SPJ1

Users who are connecting to an NLB cluster have been complaining that after using the site for a few minutes they are prompted to log in using their username. What should you do to fix the problem and retain scalability and why?

Answers

The right thing to do is that  you need to Set the cluster affinity to Single.

What is single affinity?

Single affinity is known to be a term that connote the act of load balancing that uses the source IP address that pertains to the incoming connection.

Note that It is said to automatically redirects all requests and as such, The right thing to do in the case about is that  you need to Set the cluster affinity to Single.

Learn more about scalability from

https://brainly.com/question/14301721

#SPJ1

what is cpu?
please give me right answer ​

Answers

Answer:

Explanation:

processor such as intel/amd processors

G. Write OOP in foll. What's aprogramming language?examples programming languages ? Outline any five​

Answers

Explanation:

Significant object-oriented languages include: Java, C++, C#, Python, R, PHP, Visual Basic.NET, JavaScript, Ruby, Perl, SIMSCRIPT, Object Pascal, Objective-C, Dart, Swift, Scala, Kotlin, Common Lisp, MATLAB, and Smalltalk.

I hope it helps you don't forget to give ratings

The formula in the cell above would yield the result:

Answers

The result that would be yielded by the formula in the cell given would be 9.

What result would the COUNTA formula yield?

COUNTA is a formula that is used to count the number of cells in a given range of cells that have any values in them.

In the range (A1:I1), the number of cells with values would be 9 because cells A1 to I1 all have values in them.

Find out more on the COUNTA function at https://brainly.com/question/24211266.

#SPJ1

Explain how advanced analytics (e.g., Machine learning) helps the threat life cycle management. State the stage of the threat life cycle management where advanced analytics is mostly needed in your explanation.

Answers

Advanced analytics may help to simulate the behavior of an infectious disease in epidemiology.

What is Advanced analytics?

Advanced analytics refers to the computation strategies that are able to manage a huge number of parameters to model a situation.

Advanced analytics is very useful in epidemiology because this approach allows for predicting the transmissible behavior of infectious diseases caused by pathogenic microorganisms (e.g., bacteria) and viruses.

In conclusion, Advanced analytics may help to simulate the behavior of an infectious disease in epidemiology.

Learn more about Advanced analytics here:

https://brainly.com/question/15007647

#SPJ1

A computer that is not connected to a network is called a........​

Answers

Answer:

standalone computer

Explanation:

If your PC is not connected to a network, it is referred to as a standalone computer.

Hope this helped and have a good day

Read three integers from user input without a prompt. Then, print the product of those integers. Ex: If input is 2 3 5, output is 30.

Answers

Answer:

num1=2

num2=3

num3=5

num1= int(num1)

num2= int(num2)

num3= int(num3)

pro = num1*num2*num3

print(pro)

Explanation:

This is very close to a correct answer in easy code and easy to read, I was not able to put the answer in without the proper indentation alignment the way I would present this. So please adjust to your requirements for the indentation.

I am trying to make a flowgorithm chart for a dogs name, age, weight and when their weight is less than 50 OR more than 100 its output is the dogs name. I also need to include a sentinel value to end the program. For some reason I cannot share my screen or upload a file of what I completed. I really want to get past this assignment as I have already been working on it for several days. PLEASE HELP

Answers

Answer:

i think it helps

Explanation:

sorry there was someone else rude as heck messaging and responding I couldn't see their screen name

what isig naame

oh okay

I have sent dm

i dont know your name there

The postmortem lessons learned step is the last in the incident response. Why is it the most important step in the process

Answers

The postmortem lessons is the most important step in the process because it is one that gives an highlight to analyzing an incidence and the reason it occurred.

What is this lesson about?

The post-mortem review of an incident is known to be a form of a review that gives a person the answers to questions recording a case such as who, what, how, when, and where of both the incident and the ways and methods that can be used in handling the incident by the response team.

Note that the team is one that now has the space or luxury of time and also an hindsight to analyze what has occurred, what was done right, and what can be improved.

Hence, The postmortem lessons is the most important step in the process because it is one that gives an highlight to analyzing an incidence and the reason it occurred.

Learn more about postmortem from

https://brainly.com/question/21123962

#SPJ1

How is a collapsed qubit similar to a bit?

Answers

The collapsed qubit similar to a bit as it has a single value of either 0 or 1.

What is the difference between a qubit and a bit?

Note that a classical computer is one that has a memory composed of bits that is, each bit is known to hold a one or a zero.

Note also that a qubits (quantum bits) is one that can hold a one, a zero or can also superposition the both.

Hence, The collapsed qubit similar to a bit as it has a single value of either 0 or 1.

See full question below

How is a collapsed qubit similar to a bit? It can stay in a state of superposition. It is still dependent on its counterparts. It has a single value of either 0 or 1. It has numerous potential paths to follow.

Learn more about qubit from

https://brainly.com/question/24196479

#SPJ1

Fill in the blanks to help write this professional e-mail:



✔ Hello Design Team,

You may have heard, I am meeting with the VP (Vice-President) of Finance to highlight our team’s work on the Big Project.
✔ I’d like to show our best work to the VP, which is why I am asking for your help now.

I want to have a slideshow of our best designs to present.
✔ Please send me final versions of your best work so I can create the presentation.


✔ Thanks for your support!

Jan, Team Lead

Answers

The Fill in the blanks of this professional e-mail is given below:

What is the email about?

The Team Lead,

Dangete group.

To Design Team,

                    Email on project presentation

You may have heard, I am meeting with the VP (Vice-President) of Finance to highlight our team’s work on the Big Project. There we are going to talk about all the work that the team members can do and have done.

I’d like to show our best work to the VP, which is why I am asking for your help now. I want to have a slideshow of our best designs to present.

This will be presented when he comes to visit and as such, Please send me final versions of your best work so I can create the presentation. I trust you all and i know you are have been giving your best for the company's growth.

Thanks for your support.

Yours faithfully,

Jan Gith,

Team Lead

Learn more about  Design Team from

https://brainly.com/question/25886641

#SPJ1

This is your code.
>>> A = [21, 'dog', 'red']
>>> B = [35, 'cat', 'blue']
>>> C = [12, 'fish', 'green']
>>> E = [A, B, C]
What is the value of E[1][0]?
dog
cat
35
O 21

Answers

Answer:

35

Explanation:

List E is a 2 dimensional array. We want index 1 of E, which is B. Now we have an index of that list B, it is index 0 so 35.

what is the key differentiator of conversational Artificial Inelligence?

Answers

The  key differentiator of conversational Artificial Intelligence  is Natural Language Understanding.

What is Natural Language Understanding?

This is known to be the key differentiator in terms of conversational AI from traditional ones and it is one that is often  to help or bring about natural conversations.

Note that The  key differentiator of conversational Artificial Intelligence  is Natural Language Understanding.

Learn more about Artificial Intelligence from

https://brainly.com/question/25523571

#SPJ1

Differentiate between CD-R and CD RW

Answers

After writing to a CD-R, it becomes a CD-ROM. A Compact Disc Re-Writable (CD-RW) is an erasable disc that can be reused. The data on a CD-RW disc can be erased and recorded over numerous times. NOTE: CD-RW media may not be readable outside of the drive it was created in.

Explanation:

hope it will help you

If given program is executed, what will be output?

Create Stack<Integer>

Queue<Integer> queue = new LinkedList<Integer>;

Create LinkedList<Integer> ll;

int[] array = { 16, 22, 399, 214, 351 };



for (i = 0; i < array.length; i++) {

int x = array[i];

if (i % 2 == 0)

addLast(x) in ll;

else

push(x) on stack;

}

while (“stack is not empty” || “linked list is not empty”) {

if (stack is not empty)

queue.enqueue(stack.pop());

if (“linked list is not empty”)

queue.enqueue(ll.removeLast());

if “queue is not empty”)

print("I am " + queue.getFront();}

Answers

Answer:

16 22 399 214 351

Explanation:

es 1 .22 399 480

Using the knowledge in computational language in JAVA it is possible to write a code that joins the data placed in the code and outputs a value.

Writting the code in JAVA:

import java.util.LinkedList;

import java.util.Queue;

import java.util.Stack;

public class ReversingTheFirstKElementsOfAQueue{

static Queue<Integer> queue;

static void reverseQueueFirstKElements(int k)

{

if (queue.isEmpty() == true

|| k > queue.size())

return;

if (k <= 0)

return;

Stack<Integer> stack = new Stack<Integer>();

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

stack.push(queue.peek());

queue.remove();

}

while (!stack.empty()) {

queue.add(stack.peek());

stack.pop();

}

for (int i = 0; i < queue.size() - k; i++) {

queue.add(queue.peek());

queue.remove();

}

}

static void Print()

{

while (!queue.isEmpty()) {

System.out.print(queue.peek() + " ");

queue.remove();

}

}

public static void main(String args[])

{

queue = new LinkedList<Integer>();

queue.add(1);

queue.add(2);

queue.add(3);

queue.add(4);

queue.add(5);

int k = 3;

reverseQueueFirstKElements(k);

Print();

}

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

Question 1 of 25
How can you best protect your network from web-based malware?
A. By setting up web filtering software to keep users from accessing
questionable sites
B. By using strong passwords to keep malware from attacking your
network resources
C. By installing software updates that include patches created to fix
security flaws
D. By running regular backups on all network resources

Answers

Answer:

Keep your computer and software updated. ...

Use a non-administrator account whenever possible. ...

Think twice before clicking links or downloading anything. ...

Be careful about opening email attachments or images. ...

Don't trust pop-up windows that ask you to download software. ...

Limit your file-sharing.

The ACME Online Store offers different preferred customer discounts for customers who are "None", "Bronze", "Silver" and "Gold".

The variable customer_category is a string that is one of these 4 values.

0 for "None"
5 for "Bronze"
10 for "Silver"
20 for "Gold"
Your colleague wrote the following program (Program C). Does the program that he/she wrote have the correct logic to assign the correct discount for each of the 4 valid values of customer_category?

Program C:

if customer_category == "None":

discount = 0

if customer_category == "Bronze":

discount = 5

if customer_category == "Silver":

discount = 10

if customer_category == "Gold":

discount = 20

Answers

Yes, the written program has the correct logic to assign the correct discount for each of the 4 valid values of customer_category

What is a Program?

This refers to the sequence of instructions that are keyed into a computer to execute user-specific commands.

Hence, we can see that based on the variable customer_category that has a string that is one of these 4 values:

0 for "None"

5 for "Bronze"

10 for "Silver"

20 for "Gold"

The program uses the correct syntax as it gives the correct discount based on the assigned values of the variable customer_category as executed with the syntax above.

Read more about programs here:

https://brainly.com/question/1538272

#SPJ1

def rectangle_area(base,height):
area =base * height
return area


print("The area is ", rectanle_area(5,6))

ive been typing theabove in my answer but it still say "NOT QUITE"

Answers

Using the computer language in python to write a function code that calculates the area of ​​a rectangle.

Writting the code in python:

def rectangle_area(base, height):

z = base*height  # the area is base*height

print("The area is " + str(z))

rectangle_area(5,6)

See more about python at brainly.com/question/18502436

#SPJ1

how could this code be simplified?

Answers

The code to be simplified is not indicated but I will give you a general guide to simplifying Java codes.

How do you simplify Java Code?

At the top, declare and initialize your variables. Late declaration disrupts readability.Create specific functions that are modular. It is inefficient to have functions that attempt to "do it all". Make it a practice to name the function to correspond to the task.All duplications must be removed and rectifiedHaving comments provide a fantastic way to summarize the purpose of a code.Do not overuse recursion. Doing this makes it difficult to understand at a glance.If possible, do not use global variables. The local variable takes precedence over the global variable in JavaScript.

Learn more about Java code at;
https://brainly.com/question/18554491
#SPJ1

Kim agrees. You get the equipment from the truck and begin working. Kim approaches you as you are installing the modem and is a little concerned about customers being on the same network. Kim is afraid that customers will be able to "read" the information from credit cards and sales registers.

Answers

The ideal recommendation would be to offer Kim a VPN setup that will secure all network traffic in order to allay her concerns about consumers being able to "read" the information from credit cards and sales registers when connected to the same network.

What is credit cards?

A credit card is a type of credit facility provided by banks that allows customers to borrow money up to a pre-approved credit limit. Customers can utilize it to do business while buying goods and services.

An electronic payment technique known as a credit card can be used for both consumer and business transactions, including cash advances and purchases. A credit card frequently serves as a substitute for cash or checks and provides an unsecured revolving line of credit.

Credit with no interest: A credit card has an interest-free grace period between the time of purchase and the time of payment.

Thus, The ideal recommendation would be to offer Kim a VPN setup.

For more information about credit cards, click here:

https://brainly.com/question/28533111

#SPJ2

What does a search engine on a computer maintain?

Answers

Answer:

The answer is below the explanation.

Explanation:

A search engine maintains the following processes in near real time: Web crawling. Indexing. Searching.

Write code that declares variables to represent a user’s hourly rate of pay and the
number of hours worked.
Assign appropriate values to the variables, then calculate and display the user’s gross
pay for a week, the withholding tax (15% of gross pay), and the net pay (gross pay –
withholding). An example output would be:
Gross Pay: 1500
Withholding Tax: 225
Net Pay: 1275

c# language

Answers

The code for the given command is:

hrs = input("Enter Hours:")

h = float(hrs)

ret = input("Enter rate per hour:")

rate = float(ret)

p = computepay(h, rate)

print("Pay", p)

The above code asks the user for input of hourly pay rate and the number of hours worked and prints the output after making the necessary computations.

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

Research the design basis threat (DBT) in terms of Cybersecurity for an organization of your choice. Discuss what the Cybersecurity objectives should be for that organization and what those objectives should address?

Answers

A Design Basis Threat (DBT) is known to be a characteristics of any given or potential insider and also those of external adversaries, that may try to have or gain unauthorized removal or sabotage, against a physical protection system that was set up designed and evaluated.

What are Cybersecurity objectives?

Cybersecurity aims are:

To protect computer system, To protect networks, To protect software programs from such cyber attacks.

Note that a lot of digital attacks are targeted at accessing, changing, or deleting sensitive information as well as others.

Learn more about IT from

https://brainly.com/question/1276995

#SPJ1

What does the term "classical computer" refer to?

Answers

Classical computing is another name for binary computing. In this traditional approach to computing, information is stored in bits that are represented logically by either a 0 (off) or a 1 (on). Today's processors, including x86 and ARM processors, support classical computing.

Drag the tiles to the correct boxes to complete the pairs.
Match each computer field with its appropriate description.
Tiles
information support and services
network systems
programming and software development
web and digital communications
Pairs
creating interactive materials
arrowBoth
providing technical assistance to users
arrowBoth
designing and developing applications
for an organization's use
arrowBoth
developing and implementing an
organization's technology infrastructure
arrowBoth

Answers

The matchup are:

information support and services - providing technical assistance to usersnetwork systems - creating interactive materialsprogramming and software development - designing and developing applications for an organization's useweb and digital communications -developing and implementing anorganization's technology infrastructure

What is network system?

A network is known to be made up of a set of computers, servers, network devices, and other devices that are linked so that it can allow data sharing.

Therefore, The matchup are:

information support and services - providing technical assistance to usersnetwork systems - creating interactive materialsprogramming and software development - designing and developing applications for an organization's useweb and digital communications -developing and implementing anorganization's technology infrastructure

Learn more about network systems from

https://brainly.com/question/1326000

#SPJ1

Firework: tool to design UX

Perl: programming language

Flash: software to design UI

Oracle: database software

Other Questions
Who are the main stakeholders that the y is attempting to reach with the information it has gained through its market research free answer Which diagnostic findings will the nurse expect when caring for a patient who is a experiencing worsening of asthma symptoms Practice Assessment: RN Fundamentals Online Practice 2019 b Approximately half of the solid waste produced in the united states is____waste, which is generally recycled into the____on the farms where it is produced. Rocks in continental crust are as old as ____ years.A. 200 million B. 44 million C. 4.4 billion ______ is found in products available at your local pharmacy; in high doses it produces dissociative effects. Jack's cow is tied to abeanstalk with a pieceof rope that is 15 ft long.What is the area of thecircle in which the cow can graze The length of a rectangular plot of land is 151.28 m, and its width is 72.35 m. What is the perimeter of this plot?605.1 m223.6 m289.4 ma.b. 447.3 mc.d.Please select the best answer from the choices providedOAOBOCOD climate factsheet Activity 4 For which interval is the function constant? (4,0) begin ordered pair negative 4 comma 0 end ordered pair (4,) left parenthesis 4 comma infinity right parenthesis (0,4) begin ordered pair 0 comma 4 end ordered pair (,4) Vega, the brightest star in the constellation lyra, has a parallax angle of approximately 0.13 arcseconds. approximately how far away is vega from the sun? Solid silver bromide and aqueous potassium nitrate are produced by the reaction of aqueous silver nitrate and aqueous potassium bromide . True or false: Gender-typing is fueled by gender schemas. True false question. Janell sees an advertisement for a new skin-care product. which question should she ask herself about the product? The magnitude, M, of an earthquake is represented by the equation M=2/3logE/E0 where E is the amount of energy released by the earthquake in joules and E0=10^4.4 is the assigned minimal measure released by an earthquake. Which shows a valid step in the process of calculating the magnitude of an earthquake releasing 2.5 10^15 joules of energy?2.510^15 = 2/3logE/10^4.410^4.4=2/3logE/2.510^15M=2/3log(9.9510^9)M=2/3log(2.5510^10)M=2/3log(9.9510^10) Which process is used to develop risk profiles for a firm's information system projects and assets? Click and drag the proper lables to the arrows which represent the following enthalpy changes for the Born-Haber cycle. Is money market account an investment or interest-bearing by the end of the clinton administration, the united states governments budget had which of the following brainly Read the following sentence:"Burt insisted it was kismet that they met when he sat at her table thinking she was his blind date, but Lola said itwasn't their destiny as much as his refusal to wear bifocals."Based on context clues in the reading, define "kismet."O a dreamgood luckcoincidenceO fate