Slice [::-1]
Upper
If you combine , you'll be able to manage it
You create a function that checks for sentences and returns True if it is a sentence, and False if it's a sentence or not a sentence.Accordingly
Compare the beginning and end of a character in one argument, otherwise return False.
Compare the first and last two arguments and return False if they are not the same.
Compare the third from the beginning of the three arguments and the third from the end, otherwise return False.
4 Repeat the above until the end of the string and return True if it does not become False.
If the string is even, it's fine, but if it's odd, any letter in the middle is fine, so
You need to be careful.
Example
ABBA is the sentence
ABCBA is also written
ABCAB is not a sentence.
You will be writing a program like this
543 Uncaught (inpromise) Error on Electron: An object could not be cloned
551 PHP ssh2_scp_send fails to send files as intended
738 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
551 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.