14.4k views
3 votes
Three Strings someone help

Three Strings someone help-example-1

1 Answer

3 votes

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)

Step-by-step 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.

User Sergey Shubin
by
5.1k points