thehotshot96
thehotshot96 thehotshot96
  • 04-06-2020
  • Computers and Technology
contestada

Three Strings someone help

Three Strings someone help class=

Respuesta :

hello1222 hello1222
  • 04-06-2020

Answer:

s1 = input("First string?")

s2 = input("Second string?")

s3 = input("Thrid string?")

stringTest = s1 + s2;

if(stringTest == s3):

 print(s1 + " + " + s2 + " is equal to " + stringTest)

else:

  print(s1 + " + " + s2 + " are not to " + stringTest)

Explanation:

I get user input from s1,s2 and s3. Then, I use stringTest to store s1 and s2. Finally, I see if stringTest is eqqual to the last string. If yes, then tell the user they are equal. If not, then tell the user that they are not equal.

Answer Link

Otras preguntas

What could be a problem with a pure market economy?
I WILL GIVE BRAINLY PLS!!!!!! When Jake buys an order of copper, he pays $45 for the first pound and $42 for each additional pound. Which of the following expre
PLS HELP ME ANSWER THIS I NEED HELP ASAP it detects if it’s right or wrong
Do the attachment below
this is a little tricky I need help​
Is the relation a function?​
A recipe for 1 batch of spice mix says, “Combine 3 teaspoons of mustard seeds, 5 teaspoons of chili powder, and 1 teaspoon of salt.” How many batches are repres
Imagine that you are a Texas colonist. You are unhappy with some of the changes that the Mexican government has made. You and the other colonists want to let th
18 = 5p + 3 NEED HELP ASAP
a study of the byzantine civilization would show that this civilization