Write a program that prompts the user for a word or phrase, and determines if the entry is a palindrome. A palindrome is a word or phrase which reads the same forwards and backwards. For example, if the user entered: madam the program should display: That is a palindrome Your program should ignore spaces, commas, and apostrophes, and ignore differences between upper and lower case. For example, the phrase: Madam, I'm Adam would be considered a palindrome.

Answers

Answer 1

Answer:

Explanation:

The following code is written in Python. It asks the user for an input. Then cleans the input using regex to remove all commas, whitespace, and apostrophes as well as making it all lowercase. Then it reverses the phrase and saves it to a variable called reverse. Finally, it compares the two versions of the phrase, if they are equal it prints out that it is a palindrome, otherwise it prints that it is not a palindrome. The test case output can be seen in the attached picture below.

import re

phrase = input("Enter word or phrase: ")

phrase = re.sub("[,'\s]", '', phrase).lower()

reverse = phrase[::-1]

if phrase == reverse:

   print("This word/phrase is a palindrome")

else:

   print("This word/phrase is NOT a palindrome")

Write A Program That Prompts The User For A Word Or Phrase, And Determines If The Entry Is A Palindrome.

Related Questions

To extract detailed and comprehensive responses from your client, use the _____ questioning technique.

Pleeeeeeeeeease hellppppppp ASAP!!!:)

Answers

Answer:

I think it’s open ended question technique

Explanation:

but I would definitely change it if’s it wrong and I’m also sorry if it is

Answer:

what do you need To extract detailed and comprehensive responses from your client?

19. Blizzard’s Overwatch is an example of _______ being one of the strongest inspirations for new video games.
a) Performing art forms
b) Previous successful games
c) Modding
d) Literature

Answers

Answer:

B

Explanation:

1. Write a method to measure sortedness of an array. The method header is:
2. Write an iterative method to measure sortedness of a collection of linked nodes. The method header is:
3. Write a recursive method to measure sortedness of a collection of linked nodes.
Document Preview:
Meetup Questions and ideas Write a method to measure sortedness of an array. The method header is: public static double sortedness(Comparable[] array) Write an iterative method to measure sortedness of a collection of linked nodes. The method header is: public static double sortednessIterative(Node node) Write a recursive method to measure sortedness of a collection of linked nodes. public static double sortednessIterative(Node node)

Answers

ㄴㄱㄷㅂㄷㅈ븟ㅈㅂㅈㅂㅈㄱㅅㄱㅈㅂㄷㅅㄷㅈㄱㅅㄱㅅㄴㅇㄴㅇㄴㅇㄴㅁㄴㅇㄴㅇㄴㅈㅂㅈㅂㅈㄱㅈㄴㅈㄴㄱㅆㅅㄱㅈㅂㄷㅅㅈㅂㅈㅅㄱ싲ㄱㅈㅂㄷㅂㅅㅇㄱㅇㄱㅅㅂㄷㅈㄱㅇㄱㅇㄱㄷㄱㅅㄱㅇㄱㄷㅈㄱㅇㅈㄱㅂㅈㅂㄷㅇㄷㅅㅆㄱㅇㄱㅅㅈㄱㅈㄱㅇㄱㅇㅂㅇㄱㅁㄱㅇㄱㅇㄱㅇㄱㅇㄱㅁㅋㅁㄱㅇㄱㅇㄱㅇㄱㄴㅁㄴㅇㄴㅇㄴㅇㄴㅇㄴㅇㄴㅇㄴㅇㄴㅁㄴㅇㄴㅇㄴㅅㄱㅈㄱㅈㅅ?...

To provide for unobtrusive validation, you can install the ____________________ package for unobtrusive validation.

Answers

Answer:

AspNet.ScriptManager.jQuery?

Explanation:

Unobtrusive validation means we can perform a simple client-side validation without writing a lot of validation code by adding suitable attributes and also by including the suitable script files.

One of the benefits of using a unobtrusive validation is that it help to reduce the amount of the Java script that is generated. We can install the AspNet.ScriptManager.jQuery? for the unobtrusive validation.

When the unobtrusive validation is used, validation of the client is being performed by using a JavaScript library.

What is the engine for
?

Answers

<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3

Answer:

An engine or motor is a machine designed to convert one form of energy into mechanical energy. Heat engines convert heat into work via various thermodynamic processes.

<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3

Answer:

An engine or motor is a machine designed to convert one form of energy into mechanical energy.

Explanation:

Point out the wrong statement: SOA eliminates the use of application boundaries, the traditional methods where security is at the application level aren't likely to be effective An atomic service cannot be decomposed into smaller services that provide a useful function XML security service may be found in retail application communication. None of the mentioned

Answers

Answer:

All the three statements given are true so the correct option is option 4 which is none of the above.

Explanation:

The options are given in a jumbled up form the options are sorted which are as follows:

SOA eliminates the use of application boundaries, the traditional methods where security is at the application level aren't likely to be effective An atomic service cannot be decomposed into smaller services that provide a useful function XML security service may be found in retail application communication. None of the mentioned

SOA stands for Service Oriented Architecture. This eliminates the application boundaries so option 1 is true.

An atomic service is defined as the smallest service which cannot be divided further. So this is true as well

The XML security service is incorporated in all retail applications. so this is true as well.

So the remaining option is just None of the mentioned.


Select the correct answer.
Ron is an electrician. He loves to work with wires and switches. What type of input does Ron carry when called for fixing an electric problem?
OA. tools
OB.
information
OC.
capital
OD people
O E. power

Answers

Answer:

B

Explanation:

Answer:

A- tools

Explanation:

PLATO:)

Print air_temperature with 1 decimal point followed by C. Sample output with input: 36.4158102 36.4C (python)

Answers

Answer:

hope this helps

Explanation:

#Read the value from keyboard and parse to float

#assign the value to air_temperature

air_temperature=float(input())

#Print the air_temperature with one decimal place to right with C

print('%.1fC'%air_temperature)

#where f is a format specifier .1 is number of decimal places to display on right side

#C is the character to print after the decimal value

Write a method named randomStar that takes two parameters, a Random object r and an integer num. The method should keep printing lines of * characters, where each line has between 5 and 19 * characters inclusive, until it prints a line with greater than or equal to num characters. num is guaranteed to be between 5 and 19. For example, the method call randomStar(14) will print:

Answers

Answer:

The method is as follows:

public static void randomStar(Random r, int num) {

   int n;

   do {

       n = 5 + r.nextInt(15);

       for(int count = 0; count < n; count++){

           System.out.print("*");

       }

       System.out.println();

   } while(n < num);

}

Explanation:

This defines the method

public static void randomStar(Random r, int num) {

This declares n as integer

   int n;

The following is repeated until n >= num

   do {

This generates a random number for n (5 and 19)

       n = 5 + r.nextInt(15);

The following loop prints n *'s

       for(int count = 0; count < n; count++){

           System.out.print("*");

       }

This prints n

       System.out.println();

   } while(n < num); The loop is repeated as long as the condition is valid

}

Why should data be collected and analyze for evaluation?​

Answers

Answer:

During outcomes assessment, data can provide the basis for you and other stakeholders to identify and understand results and to determine if your project has accomplished its goals. Therefore, much care must go into the design of your data collection methods to assure accurate, credible and useful information.

Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. Which device transmits frequencies to mobile phones?
towers transmit frequencies to mobile phones.

Answers

Answer:

Cell.

Explanation:

Electromagnetic waves is a propagating medium used in all communications device to transmit data (messages) from the device of the sender to the device of the receiver.

Generally, the most commonly used electromagnetic wave technology in telecommunications is radio waves.

Radio waves can be defined as an electromagnetic wave that has its frequency ranging from 30 GHz to 300 GHz and its wavelength between 1mm and 3000m. Therefore, radio waves are a series of repetitive valleys and peaks that are typically characterized of having the longest wavelength in the electromagnetic spectrum.

Basically, as a result of radio waves having long wavelengths, they are mainly used in long-distance communications such as the carriage and transmission of data.

In the field of telecommunication, all telecommunication setup are designed and developed to make use of two network devices: one device is typically used for the transmission of data while the other device is used to receive data that are sent on the network.

Generally, cell towers are tall poles that are used to transmit frequencies to mobile phones.

Answer:

Cell

Explanation:

plato

I will give brainliest!!!!! I NEED HELP ASAP!!!!!!!

Answers

Answer:

c

Explanation:

What refers to a collection of small sections of code that are stored together to solve many everyday programs?
- school
- mausoleum
- museum
- library

Answers

Hey none of them are corect

Hope you have a good day

-scav

Answer:

Explanation:

School

ASAP BRAINLIEST!!!!!!
Line installers must complete a four-year university degree program in order to be hired.
O True
O False

Answers

Answer:

false plz mark brainliest

Answer:

oh yeah i saw something about this!!! YaY

Explanation:

TRUUEEE

ASAP BRAINLIEST!!!!
Interpersonal skills are not necessary for a telecom technician.
O False
O True

Answers

Answer:

false

Explanation:

edg2021

many times telecom technicians work in homes and with others and they need to be able to communicate to learn what the consumers want so he can do his job right.

Why vechiles Tyres are black in colour?​

Answers

Answer: See explanation

Explanation:

It should be noted that the rubber that tire is made from has a color that's milky white but due to the fact that carbon black is being added to the rubber, then the tire will turn to black.

The importance of carbon black to tires is immense as it acts as the stabilizing chemical compound. Also, it helps in increasing the strength of the tire and its durability and also protects the tire from ozone effect.

You have written a program to keep track of the money due to your company. The people in accounting have entered the information from the invoices they have sent out. However, the total from accounting does not agree with a total of a second listing of items that can be billed from the production department.

Using the drop-down menus, complete the sentences about the steps in the debugging process.

As a first step in diagnosing the problem, you will
✔ reproduce the error.
A good place to begin is by examining the
✔ error codes.
Next, you can
✔ troubleshoot
the problem.
This will help you
✔ identify the source of the problem.

Answers

Answer:

1. REPRODUCE THE ERROR

2. ERROR CODES

3. TROUBLESHOOT

4. IDENTIFY THE SOURCE OF THE PROBLEM

Explanation:

Debugging a program simply means a sequence of steps which one takes to correct an imperfect program, that is a program that does not run as intended.

A good way to start debugging is to run the code, by running the code, one will be able to determine if the program has a bug. If it has then it produces an error. This error is a good starting point as the error code gives a headway into where the bug may lie.

The error code gives a hint into the type of error causing a program to malfunction which could be a syntax error, logic, Runtime and so on. In some case probable lines where there error lies are spotted and included in the error code produced.

After evaluating the error code, then we troubleshoot the probable causes of the error. By troubleshooting all the possible causes, the source of the error will eventually be identified.

Answer:

As a first step in diagnosing the problem, you will

✔ reproduce the error.

A good place to begin is by examining the

✔ error codes.

Next, you can

✔ troubleshoot

the problem.

This will help you

✔ identify the source of the problem.

Explanation:

Write a python statement that print the number 1000

Answers

1.

print(1000)

2.

x = 600

y = 400

print(x + y)

IF SOMEONE HELPS ME BY ANSWERING I WILL BECOME FAMOUS AND SO WILL YOU
Select the correct answer. Which type of information may be useful? A. complete information B. summarized information C. contains opinions and observations of others D. contains historical data

Answers

Answer:

A

Explanation:

If complete information means it has evidence and data as well as information and observations then yes, that is your answer. If it does not, then D would be your answer

QUESTION 4
Which of the following describes the Al/Machine Learning Process in the right sequence?
Problem Statement->Discovery->Learning->Deployment
Deployment->Discovery->Learning->Problem Statement
Learning->Discovery->Problem Statement->Deployment
Discovery->Problem Statement->Deployment->Learning
V​

Answers

Answer:

Deployment discovery learning problem statement

is a language composed of commands within a file that can be executed without being compiled.

Answers

Answer:

A Scripting Language

Explanation:

Edge 2021

An interpreted language is a type of programming language for which several of its iterations explicitly and voluntarily implement instructions, without translating code into machine-language directives before.

What is the work of interpreter?

An interpreter converts orders of a high-level into an intermediary type which instead performs. Interpreters are also used in learning as they provide immersive content for pupils.Simply stated, an editor is a program where you construct and tweak programs. The program is encoded, or compiled, using the compiler.

IDEs are a formidable collection of tools designed to make programming as simple as it can be. A code editor is essentially a text editor with strong built-in functionality and dedicated features that are geared to simplify and expedite the editing of code.

Therefore, An interpreted language is a type of programming language for which several of its iterations explicitly and voluntarily implement instructions, without translating code into machine-language directives before.

Learn more about interpreted language on:

https://brainly.com/question/23838084

#SPJ3

Patrick manages the cloud services that are used by a small hospital system. He knows that there are a lot of laws and regulations out there that pertain to storing PII that are different than other industries. Which of the following sets of laws and regulations is he specifically thinking of that do not apply to other industries?
a. HIPAA
b. PCI DSS
c. GDPR
d. SLA

Answers

Answer:

a. HIPAA

Explanation:

HIPPA represents the Health Insurance Portability and Accountability Act that of the United States which becomes mandatory for protecting the medical data in any form.

Also in the case of data protection that represent the general regulations, PCI DSS, GDPR etc would be used

So the option a is correct

hence, all the other options are wrong

Answer:

A. HIPAA

Explanation:

sets of laws and regulations is he specifically thinking of that do not apply to other industries.

Write a police description a person who know you well​

Answers

Answer:

I will be describing Jude. He is a neighbor.

Explanation:

A police description refers to the method of describing a person using high-level detailing. An example is given below:

He is a Five feet-three male caucasianWith brown eyes andan Australian accentHe has a military haircutAbout 38 yearsWeighs about 95Kgand dresses casuallyhe walks with a slant to the lefta dove tattoed at the back of his neckand a birthmark on his left ear lobe

Cheers

advantage of internet to millennials​

Answers

Benefits of Millennials – Networking Millennials, being constantly active on various social media platforms, are more connected and exposed to greater networks. Give them 10 minutes and they will be able to reconnect with the majority of their primary, secondary and tertiary school connections along with previous colleagues

Answer any choices for this question

Explanation:

Human API refers to a:
A. moment in which many humans unexpectedly act the same.
B. set of instructions transferred between viewers and an artist.
C. collection of codes used for the communication of software.
D. humanlike android programmed to create artistic works.

Answers

Answer: C.

Explanation: Set of instructions transferred between viewers and an artist

Create a class Car, which contains Three data members i.e. carName (of string type), ignition (of bool type), and currentSpeed (of integer type)
 A no-argument constructor to initialize all data members with default values
 A parameterized constructor to initialize all data members with user-defined values
 Three setter functions to set values for all data members individually
 Three getter function to get value of all data members individually
 A member function setSpeed( ) // takes integer argument for setting speed
Derive a class named Convertible that contains
 A data member top (of Boolean type)
 A no-argument constructor to assign default value as “false” to top
 A four argument constructor to assign values to all data-members i.e. carName, ignition, currentSpeed and top.
 A setter to set the top data member up
 A function named show() that displays all data member values of invoking object
Write a main() function that instantiates objects of Convertible class and test the functionality of all its member functions.

Answers

Answer:

Copy paste it.

Explanation:

#include <iostream>

#include <string>

using namespace std;

//Create a class Car, which contains • Three data members i.e. carName (of string type), ignition (of bool type), and //currentSpeed (of integer type)

class Car

{

public:

string carName;

bool ignition;

int currentSpeed;

//A no-argument constructor to initialize all data members with default values

//default value of string is "",bool is false,int is 0

Car()

{

carName="";

ignition=false;

currentSpeed=0;

}

//A parameterized constructor to initialize all data members with user-defined values

Car(string name,bool i,int speed)

{

carName=name;

ignition=i;

currentSpeed=speed;

}

//Three setter functions to set values for all data members individually

// Three getter function to get value of all data members individually

void setCarName(string s)

{

carName=s;

}

void setIgnition(bool ig)

{

ignition=ig;

}

void setCurrentSpeed(int speed)

{

currentSpeed=speed;

}

string getCarName()

{

return carName;

}

bool getIgnition()

{

return ignition;

}

int getCurrentSpeed()

{

return currentSpeed;

}

//A member function setSpeed( ) // takes integer argument for setting speed

void setSpeed(int sp1)

{

currentSpeed=sp1;

}

};

//Derive a class named Convertible

class Convertible:public Car

{

//A data member top (of Boolean type)

public:

bool top;

public:

//A no-argument constructor to assign default value as “false” to top

Convertible()

{

top=false;

}

//A four argument constructor to assign values to all data-members i.e. carName, ignition,

//currentSpeed and top.

Convertible(string n,bool i,int s,bool t):Car(n,i,s)

{

carName=n;

ignition=i;

currentSpeed=s;

top=t;

}

// A setter to set the top data member up

void setTop(bool t)

{

top=t;

}

//A function named show() that displays all data member values of invoking object

void show()

{

cout<<"Car name is:"<<carName<<endl;

cout<<"Ignition is: "<<ignition<<endl;

cout<<"Current Speed is :"<<currentSpeed<<endl;

cout<<"Top is:"<<top<<endl;

}

};

//main function

int main()

{

//creating object for Convertible class

Convertible c1("Audi",true,100,true);

c1.show();

c1.setCarName("Benz");

c1.setIgnition(true);

c1.setCurrentSpeed(80);

c1.setTop(true);

c1.show();

cout<<"Car Name is: "<<c1.getCarName()<<endl;

cout<<"Ignition is:"<<c1.getIgnition()<<endl;

cout<<"Current Speed is:"<<c1.getCurrentSpeed()<<endl;

return 0;

}

adaptability within a species can only occur if there is genetic.

Answers

Answer:

Variation or diversity.

Explanation:

Natural selection can be defined as a biological process in which species of living organisms having certain traits that enable them to adapt to environmental factors such as predators, competition for food, climate change, sex mates, etc., tend to survive and reproduce, as well as passing on their genes to subsequent generations.

Simply stated, natural selection entails the survival of the fittest. Therefore, the species that are able to adapt to the environment will increase in number while the ones who can't adapt will die and go into extinction.

Adaptability within species can only occur if there is genetic variation or diversity i.e a drift in the genetic makeup of the total number of living organisms living together at a particular place (population).

Consider an array of length n containing positive and negative integers in random order. Write C++ code that rearranges the integers so that the negative integers appear before the positive integers. Your solution should use

a. O(n2) operations
b. O(n) operations

Answers

a=243484318731872913781675784

PLEASE HELP WILLL GIVE BRAINLIESTTTTT!

Jack wants to use masking to sharpen an image. What is an accurate description of masking that can help Jack?
Masking is also called (blank). It controls the minimum (blank) change that will be sharpened. You can use the setting to sharpen more pronounced edges in an image.

Answers

Answer:

first one is threshold and second one is contrast

Explanation:

looked in the notes.

You wish to use your personal laptop computer at work. However, the IT department folks are unwilling to allow you. The likely reason is ______. a. you will use your laptop for non-work related activity b. your productivity could not be measured correctly c. your non-work related use of the laptop could increase vulnerability d. your activities could not be monitored

Answers

Answer:

B and C are the most likely options

i would probably pick C because if the IT department said no C is the option, otherwise if your boss said no it would be B.

Other Questions
Hey guys marking brainliest What should I add in the background 20 points plss fast Which one of the following bank accounts will you choose for a savings account? Bank A: An account that pays 8% nominal interest (APR) with daily (365-day) compounding. Bank B: An account that pays 8% nominal interest (APR) with annual compounding. Bank C: An account that pays 7% nominal interest (APR) with daily (365-day) compounding. Bank D: An account that pays 7% nominal interest (APR) with monthly compounding. a 400 g of a liquid of density 1.6g/cm3 is made from mixing liquids of density 1.2g/cm3 and 1.8g/cm3 find the mass of the liquid of density 1.2g/cm3 What major change/ changes do you feel Yanek has undergone so far? How has he evolved? What has he learned about himself and the world? What value of y makes this equation true? 8(y - 9) = 24 On a very cold morning, it was -8F. As the day went on, the temperature rose 2 degrees each hour. Which equation shows the temperature over time? How many milliliters of 0.010 M NaOH are required to exactly neutralize20.0 milliliters of 0.020 M HCI?30 mL10 mL40mL20mL Sasha has a rectangular garden 8 m by 10 m. The garden has a path surrounding it which is 2 m wide. What is the total area of the garden and pathway? A. 168 m^2 B. 120 m^2 C. 116 m^2 D. 96 m^2 E. 84 m^2 Find two integers whose sum is 20 and product Is 100 What is the vent in earths surface through which magma and gases are expelled 2.1 There are 5 red balls, 3 blue balls and 2 green balls in a box. Suzie takes at random a ball from the box and gives it to her friend. She then takes at random another ball from the box. 2.1.1 Write down the sample space of this experiment. [2] 2.1.2 Work out the probability that both balls are of the same colour. What is the slope of the line y = 6x + 3?3-66-3 What hardships and challenges did the Continental Army face during the winter at Valley Forge?Write your response in two to three complete sentences. Imagine you have been called to handle an emergency on the 10th floor of a building, but seven guests are waiting to be checked in at the front desk. It's late at night, and you are momentarily alone at the front desk. What would you do? 314B=12A=53A. AB =1129411B. AB=212310aC. AB =61518D. AB =1727414 Help plz plzzzzzzzzzzz ASAPGiven what we observed in #8, how does the area of AFD above compare to the area of ABC ? Explain your answer. Finleyville had a problem with littering. To solve the problem, Finleyville introduced the Add-a-Can program where new garbage cans would be added every two years. What does the chart tell us about the Add-a-Can prograM? a(Even though more garbage cans were added, people are still throwing the same amount of trash on the ground.b( The Add-a-Can program was successful because less trash was thrown on the ground as more cans were added.C( The Add-a-Can program led to more trash being thrown on the ground than in the trash can.D( The Add-a-Can program was an expensive environmental program. 2. The proof failing the test scared him. please urgent please beg