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

Which of the following was not an Allied Power? a. Serbia b. France c. United states
from 3 o'clock to 3:45 how many degrees is that
Is a mirrors surface transparent,translucent,or opaque?how do you know?
Find all the powers of 4 in the range 4 through 1,000 what do i do for this?
Which modifier can be used to make a comparison? total infinite large equal
Used to enhance the amount of RAM in a system
Working together, Melissa and Jing can mow a lawn in 5 hours. It would take Melissa 8 hours to do the job alone.What is the value of r, the part of the lawn tha
drama, a speech given entirely by one person or character is called a
Causes and effects of the development of absolute monarchy in Russia?
Which is correct? My cat is brown;I wish he had spots. My cat is brown. I wish he had spots. My cat is brown I wish he had spots My cat is brown I wish he had s