Answer to Question #255825 in Python for Isabel Cortez

Question #255825

5. String[1] Check


by CodeChum Admin


As long as you haven't forgotten about indexing, you'll be just fine.


Instructions


Input three strings in different lines.

Print out "Same" if all of their 2nd characters are the same, else print out "Not the Same".


Input


Three lines containing a string on each.


Cry

Priest

Fry


Output


A line containing a string.


Same


1
Expert's answer
2021-10-24T11:51:29-0400
# Online Python compiler (interpreter) to run Python online.
# Write Python 3 code in this online editor and run it.
s1 = input()
s2 = input()
s3 = input()


if s1[1] == s2[1] and s[2] == s[3]:
    print('Same')
else:
    print('Not the Same')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS