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

let f(x)=3x+4 and g(x)=2x-5 find (f-g)(x)
What did the events of 1968 show about americans views on plitics at the time
The threadlike structures found in the nucleus of each human cell and made up of deoxyribonucleic acid are called.
sun-->sagebrush-->jackrabbits-->coyotes What would happen to this ecosystem if the amount of rain increased? plsss tell me
Write 5 Spanish sentences (commands) telling your little brother what to do. Be sure to use 5 different verbs. For example, you might tell him to clean his room
Need additional math help 50 pts
Which is the correct graph of y=2/x^2-4 ?
if temperature were available from several stations in canada near the great lakes do you think 15-degree line would form a closed loop?
Who does the friar laurence assume romeo spent the night eith
QUESTION * Differentiate between early and modern cartography