今回はPythonの勉強をしたので共有したいと思います。 前から読んでも、後ろから読んでも同じなのかを判断するプログラムの共有したいと思います。 複数あるので何個か共有します 一つ目 s = 'racecar' print(s == ''.join(reversed(s))) # reversedで判断する。 reversedで逆 ...
##Given a String s, check it its palindrome. Return true if string is palindrome, else return false. ##Palindrome strings are those, where string s and its reverse is exactly same. ##"true" if S is ...
This Python code defines a function called highest_palindrome that takes two numbers (num1 and num2) as input. The purpose of the function is to find the highest palindrome that can be obtained by ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する