Identify the words of Palindrum
Write a program that receives a word and checks if the word Palindrum is.
Palindroum words are words that are read from both sides to the same form like: wolf
Write a program that receives a word and checks if the word Palindrum is.
Palindroum words are words that are read from both sides to the same form like: wolf
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
def palindrom(): word=input("Enter a word : ").lower() start=word[0] end=word[-1] if start == end: print(f'{word} is palindrom') else: print(f'{word} is not palindrom') palindrom()
word=input("Type your word:") if word==word[::-1]: print("The word is Palindrome") else: print("Your word isn't Palindrome.")
a=input() c=a.lower() b=a[::-1] d=b.lower() if c==d: print('palindrom') else: print('not palindrom')
word = input() letters = [] reversedd = str() count = len(word) while (count > 0): letters.append(word[count-1]) count = count - 1 reversedd = reversedd.join(letters) print (reversedd) if reversedd == word: print("true") else : print("False")
import time start_time = time.time() while True: if time.time() - start_time > 20: print("time up") break name =str(input("enter your name:")) if name == "0": print("end") break if name[0] == name[-1]: print("your name is a palindrame") else: print("your name is not a palindram")
class PalindromeChecker: def __init__(self, word): self.word = word def is_palindrome(self): cleaned_word = self.word.replace(" ", "").lower() return cleaned_word == cleaned_word[::-1] word = input("کلمهای وارد کنید: ") checker = PalindromeChecker(word) if checker.is_palindrome(): print("کلمه پالیندروم است.") else: print("کلمه پالیندروم نیست.")
while True: s = input("enter a word: ") if s=="exit": break print("yes") elif s == s[::-1]: print("yes") else: print("No")
Submitting answers is currently unavailable.
Write a program that gets distance to meters and converts to kilometers and shows at the output tips: each km = 1000 m
Write a program that receives 2 numeric value from the input and stores in variables A and B. Then move the values of these two variables (the value of variable A is to be stored within B and the value of variable B is saved within a)
Write a function that receives a string and returns the number of letters: To solve this question, you should not use ready-made functions for example: get_len ('code-bezan.ir') # 13
Write a program that prints an integers in the output. Get the desired interval from the input.
Write a program that receives 2 numbers from the input and prints the larger number
Write a program that prints each student's name according to the list below, and as much as his / her name, the star of his name prints the question. Try to use the nested rings Amir 5hooshang 7rez ...
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.