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

One goal of tqm is to focus on rather than of problems
In the past 4 years, a sporting goods store had two yearly losses of $28,000 and $42,000 and two yearly profits of $104,000 and $10,000. What was the net prof
A unique number that identifies a vehicle is called a A. vehicle production number. B. vehicle identification number. C. registration number. D. p
2. The _______ demanded that Latin American countries keep their financial affairs on order or risk intervention by the United States.
What is the quadratic formula
One goal of tqm is to focus on rather than of problems
answer please ir Need help
Why did Marcus gravey's movement fall apart ?
Multiple Choice: Please select the best answer anWhat is the measure of LMJK in the figure below?320h
What effect did legalism have on society?