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

The political cartoon suggests that the colonies should unite because they would need to support France. would be stronger together. would be able to give more
3 Hundreds = ____ Tens
What is the flow of science ?
x + y + 8x + 1; use x=6 and y=8
what was the result of administrative weaknesses under the acticles of confederation​
What graph is defined by the function (x+3)(x+3)? (apex)
Which of following answer choices properly match the cell structure and function depicted by this image? Choose 1 answer: (Choice A) A Nucleus — storage of gene
can someone help this is due tomorrow. order these numbers from least to greatest. 4 8/9, 39/8, 4.10, 4.106.​
what quadrant is -2 (radians) in?​
A point charge of +3 C is located at the origin of a coordinate system and a second point charge of -6 C is at x = 1.0 m. At what point on the x-axis is the e