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 is a true statement about roger Williams?
What does rodriguez mean by comedy and tragedy of mexico and california?
Select True or False for each statement. True False A function is a relation in which each element of the domain has exactly one element of the range assigned t
What does Mr. Edwards carry in his pocket when he crosses the creek? A. sweet potatoes B. rice C. broccoli D. potatoes This is from the little hous
Alkanes are hydrocarbons that contain what type of bonds
What are elements with an atomic number then 95 called
Brazil, Mexico, and Venezuela each have governments which are considered federations. A federation is A) allowed to make rules and laws which are technically un
Write the converse of this statements. If 3-2X=13, then x=-5
Europe is united under one government. True False
how do you simplify 2/3 divided by 6