Run algorithm
Each step highlights the matching Python line. Program output appears only when a line that prints actually runs.
Ready
forward
s[::-1]
?
1s = input()
2rev = s[::-1]
3print("Yes" if s == rev else "No")
Output: