Write a program to check whether a string entered palindrome

Assignment Help Python Programming
Reference no: EM132112755

PYTHON

Program Strings

Write a program to check whether a string entered is a palindrome. A string is a palindrome if it reads the same forward and backwards. The words "mom, ‘dad", "noon" for instance are palindromes.

1. Write a function def isPalindrome to check if the string entered is a palindrome.

2. Write the main function to allow the user to enter the string and prints if it is a palindrome or not.

If anyone could help me with this, I would greatly appreciate it! Please don't use global variables..up to this point in the class my teacher has taught us, a few functions, lists, tuples, strings.

Reference no: EM132112755

Questions Cloud

Write a program that obtains the execution time of selection : Write a program that obtains the execution time of selection sort, bubble sort, merge sort, quick sort.
Write a function called decryptstring that accepts a cipher : Write a function called decryptstring that accepts a ciphertext byte string, a multiplier (m), and shift amount (k).
Write an expression that evaluates to a new list containing : Write an expression that evaluates to a new list containing all the elements from the one at index k through the one at index.
Write a statement that assigns 15 to the list element : Write a statement that assigns 15 to the list element whose index is k.
Write a program to check whether a string entered palindrome : Write a program to check whether a string entered is a palindrome. A string is a palindrome if it reads the same forward and backwards.
Write a recursive function that accepts a tuple : An 'array palindrome' is an array, which, when its elements are reversed, remains the same.
Prompt the user for the details of a credit card transaction : To practice UDP programming, including the use of the socket, bind, sendto, and recvfrom system calls.
Create a program that can display information : Create a program that can display information about the first ten elements in the periodic table. The periodic table of is a table of the chemical elements.
Compute the projects IRR and NPV : Compute the projects IRR and NPV. In addition, answer the following questions: Do you believe that there was sufficient financial information to make a solid

Reviews

Write a Review

Python Programming Questions & Answers

  How many times each word has occurred in the text file

The values in this dictionary should be a count of how many times each word has occurred in the text file. Second, add the word into a data structure that is keeping track of word information for the completion process.

  Create a cheat commands in the game so player can teleport

Create a cheat commands in the game so player can teleport to any location in the map - The first four tasks in this section can be completed by modifying only the code within the ProcessStatement() and Game() functions. This section typically requ..

  Compose a program that writes the coordinates of a random

Compose a program that writes the coordinates of a random point (a, b, c) on the surface of a sphere. To generate such a point, use Marsaglia's method.

  Python project description

Grep all required data listed from the 1) to 7) and construct required run file for each step (pnr, drc, lvs, syn, pwr)based upon the choice of technology and process when executing your script.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Given the strings s1 and s2 that are of the same length

Given the strings s1 and s2 that are of the same length, create a new string consisting of the first character of s1 followed by the first character of s2, followed by the second character of s1, followed by the second character of s2, and so on (in ..

  Write multiple functions in a single python file

File Functions - For this assignment, you will write multiple functions in a single Python file names file_functions.py?

  Two-dimensional word puzzle

Write a python function called find_words that finds and prints the list of valid words in a two-dimensional word puzzle

  Write a program in python to draw a blue triangle

Write a program in Python to draw a blue triangle in a drawing window. Write a program in Python that moves the triangle in an animated movement. Write a program in Python to draw a simplified face.

  Define function that convert number value to character digit

COP 1500 Intro Computer Science Number Systems Project Assignment - Then define a function that can convert a number value to a character digit

  Calculates the projected annual outgoing costs

Calculates the projected annual outgoing costs of running Parchment Purgatory - Describe the strategy you used to find appropriate prices for each scenario

  When we sort a list of items, we need a basis

When we sort a list of items, we need a basis on which to compare the items to see whether one is bigger than another. If it's a list of numbers, Python just compares the numeric values; if it's a list of strings, Python compares the strings alpha..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd